The path I currently have for a record in the post table is this:

www.myrailsapp.com/post/id

here's the route:

 map.resources :posts, :has_many => :comments

Any thoughts on how you would make the above this?

www.myrailsapp.com/1djs34 (or some join of randomly generated letters
and numbers) so that users easily bookmark the page and access it later.

I'd want to replace the traditional path id with something more random.
How would I make an extra column  in the post table to do this?

Did some google searching, but I guess I'm not hitting the right
keywords.

Thanks!
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to