Sunday, February 12, 2012

Re: [Rails] Re: what's wrong?

On 12 February 2012 02:32, Mike Kim <fourcatrails@gmail.com> wrote:
>> skip_filter :authenticate_user!, :only => [:index, :show] unless
>> @current_layout.nil?
>
> I'm guessing that the unless statement is being parsed as an argument
> to skip_filter. Try using parentheses like this:
>
> skip_filter(:authenticate_user!, :only => [:index, :show]) unless
> @current_layout.nil?
>

I've tried in both manners but nothing :-(

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate