Created
November 7, 2012 09:07
-
-
Save RemiBa/4030303 to your computer and use it in GitHub Desktop.
Problems getting notices
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% if flash[:notice] %> | |
<p><%= flash[:notice] %></p> | |
<% else %> | |
<p>NO FUCKING MESSAGE</p> | |
<% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>NO FUCKING MESSAGE</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def update | |
@customer = Customer.find_by_reset_token!(params[:id]) | |
redirect_to root_url, flash[:notice] => "Customer: " | |
return | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment