I have two models in my application.  One model is the project and it
has many images.  I'd like to configure my routes so the URLs show the
names of the projects and images instead of the IDs.

For example:

/projects/brooklyn-loft

would display detail about a specific project where "brooklyn-loft" is a
variable and unique for each project record,

and

/projects/brooklyn-loft/master-bathroom--2

would display detail about an image that belongs to the project and
"master-bathroom--2" is a variable and unique for each image record.

Any ideas on how I would setup my routes to dynamically generate like
this?

Thanks,

David
-- 
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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to