with this
:requirements => { :context_type => 'addresses'}
and then in you controller check context_type == "addresses"

its checked by the router instead of the controller

On Sat, Sep 11, 2010 at 2:35 PM, Robert Pankowecki (rupert) <
robert.pankowe...@gmail.com> wrote:

> Yes. It works ok with code that look something like that :
>
> request.fullpath.include?(mailing_addresses_path)
>
> Robert Pankowecki
>
> --
> 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<rubyonrails-talk%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

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