However, login-failure flash messages are never appearing.
When I enter a known-bad email address (for example), the :invalid
flash message never appears.
I've debugged this in sessions_controller.rb
(SessionsController#create), and the flash message is getting set
properly to :invalid (or rather, its correct I18n translation 'Invalid
email or password.').
The view produces "<p style='color: green'></p>" is if it wants to say
something, but the <p> is empty.
I'm using ruby 1.8.7 on Mac Snow Leopard, Rails 2.3.5, Devise 1.0.4,
Warden 0.9.6. (Same behavior under 1.0.1)
Bright ideas anyone?
thanks,
Adam
--
Carlos Antonio
I'm guessing that it's conventional in the Rails world to have
something like this in your app/views/layouts/application.html.haml:
- if flash[:notice]
%p(style="color: green")= flash[:notice]
- if flash[:alert]
%p(style="color: red")= flash[:alert]
??
On Mar 9, 6:07 am, "Carlos A. da Silva"