Can you use only with skip_before_filter?

I have a before_filter in my applicationController (application.rb) for
protecting all pages in my app:

before_filter :login_required

Then in a product controller i have a skip_filter with the only clause
to allow guest users to access that resource.

#allow access to show only if guest
skip_before_filter :login_required, :only => [ :show ]

This worked fine, allowing guest users to view only the show action.
The problem is that when i login and try to access the show resource i
get errors from references to @current_user.

Im using the restful authentication plugin. An extension of the acts as
authenticated plugin.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs