Vanity Routes

Create a VanityRoutes Table and Model:

class CreateVanityRoutes < ActiveRecord::Migration
  def change
    create_table :vanity_routes do |t|
      t.string :path
      t.integer :show_id 
    end
  end
end


class VanityRoute < ActiveRecord::Base
end

Create a VanityRoutes initializer:

Vanity::Setup.config do |c|
  c.controller = "messages"  #controller that handles the route
end

[TODO] create table and model from generator