Hi all,
How do you use :except or :only conditions on a filter block? I can’t
seem to work out the syntax!
I’m currently doing:
before_filter { |c| c.role_required ‘admin’ }
Thanks a lot!
Tom
Hi all,
How do you use :except or :only conditions on a filter block? I can’t
seem to work out the syntax!
I’m currently doing:
before_filter { |c| c.role_required ‘admin’ }
Thanks a lot!
Tom
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs