Jonathan Rochkind wrote: > Marnen Laibow-Koser wrote: >> Jonathan Rochkind wrote: >>> Rails2. If a route has already been established with "map.resources", >>> is there any way I can add an additional member to it, without >>> over-writing what's already there? >> >> Just define the route as you normally would (with map.connect ). >> map.resources is not magical; it's just shorthand for a bunch of >> map.connect statements. > > Ah, i was worried that my second map.resources would 'over-ride' certain > things from the first one. But it looks like it doesn't. If you call > map.resources once with certain :members, and then call it again with > another :member... it LOOKS like indeed all the aggregated members are > now there. Cool. Thanks.
Interesting to know. I'd tend to only call map.resources once and then use map.connect, but it's good to know that it works either way. Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- 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.