I have a before_filter in my applicationController (application.rb) for
protecting all pages in my app:
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