On 28 August 2010 05:07, Ze Ca <[email protected]> wrote: > 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.
Why cannot they bookmark page www.myrailsapp.com/post/631 just as easily as www.../1djs32? Colin > > 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? > -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

