One final thing - you can also pass extra params in :requirements - thus: map.resource :foos, :requirements => { :extra => 'foo' }
will add :extra => 'foo' to the incoming params. I'm not 100% sure if this works on map.connect style routes, but if it doesn't, it's probably a bug. --Matt Jones On Apr 6, 10:18 pm, Dave Cantrell <rails-mailing-l...@andreas-s.net> wrote: > pharrington wrote: > > Alternatively, you can just use the current_page? method: > > > if current_page? foo_url > > #do some ish > > elsif current_page? bar_url > > # other stuff... > > Hey, I like that too -- thanks! > > -dave > -- > Posted viahttp://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-talk@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 -~----------~----~----~----~------~----~------~--~---