title: How do I assign a custom ID to a dynamically generated URL with Iron Router in Meteor?
body: <p>How do I have the URL of a dynamically generated post be one of the attributes assigned to it? Say it's name? So instead of events/vbMmmw6ymrWXjtXPd the URL is events/name-of-the-event</p>
  
  <p>Here's my routing so far:</p>
  
  <pre><code>    Router.route('/events/:_id', {
        name: 'event',
        data: function() { return Events.findOne(this.params._id);}
      });
  </code></pre>
  
  <p>And my schema:</p>
  
  <pre><code>Events = new Mongo.Collection("events");
  Events.attachSchema(new SimpleSchema({
    name: {
      type: String,
      label: "Name",
      max: 200
    },
    crew: {
      type: String,
      label: "Crew"
    },
    location: {
      type: String,
      label: "Location"
    },
    date: {
      type: Date,
      label: "Date"
    },
    description: {
      type: String,
      label: "Wha'appening?",
      max: 1000
    }
  }));
  </code></pre>