Extracted source (around line #1):
1: <%= flash[:notice] %>
What the heck is the problem here? I can't remember doing anything that could have caused this..?
is this in a partial or view called flash ?
Fred
Extracted source (around line #1):
1: <%= flash[:notice] %>
What the heck is the problem here? I can't remember doing anything that could have caused this..?
is this in a partial or view called flash ?
Fred
Frederick Cheung wrote:
Frederick Cheung wrote:
>> Extracted source (around line #1):
>> 1: <%= flash[:notice] %>
>> What the heck is the problem here? I can't remember doing anything that >> could have caused this..?
> is this in a partial or view called flash ?
> Fred
yes, it is within layouts/_flash.html.erb
Is this a problem?
Yes. partials get a local variable named after them, in this case flash, which is shadowing rails' flash
self.flash[:notice]
should work.
Fred
Yes. partials get a local variable named after them, in this case flash, which is shadowing rails' flash
self.flash[:notice]
should work.
Fred
Wow, thanks a lot for this information.