I am making a site with beer info. I want to have the beer name,
brewery and style info for every beer. So they all need to be
connected. But, I don't want two styles, i.e. "Pale Ale", "pale ale",
"paleale". So I was thinking of making style it's own model and people
could choose from a list, and then add one if it wasn't present
there.

But, if I had separate models for brewery also the URLs would be
nested like crazy. And, I want to be able to look up all the beers of
a certain style or from a certain brewery from the URL: example.com/
style/1, or example.com/brewery/1, as well as brew/1.

I know this is an involved question but I just can't wrap my mind
around it. I would appreciate any advice. Thanks for reading.


SHORT VERSION:

I want 3 models connected, but I don't want the nested URL craziness.
How?

Joel

-- 
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