Menu items for nested resources?

5 views
Skip to first unread message

Serenity

unread,
May 2, 2010, 5:29:00 PM5/2/10
to Ruby on Rails: Goldberg
Hello,

My application uses resourced based routing, and has nested resources.

Is it possible to specify a url for an action (and thus menu) in
goldberg that has a dynamic intermediate resource id?

I'd like my menu structure to go something like this:

Home
Widgets
Options
Colors
Contact

Where Widgets is an index of widgets, and when you click on a
particular widget, then Options and Colors become links to the list of
possible options and colors that are available for that widget. In
fact it would be nice if they didn't even show up until you had
clicked on a specific widget.

It doesn't have to work exactly like this, I just want to be able to
have sub-menu items that are resource-specific. For example, the path
for widget 1's options page would be:

/widgets/1/options

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

Reply all
Reply to author
Forward
0 new messages