Flashed sign up and sign out messages - Devise

In following this tutorial:
http://railscasts.com/episodes/209-introducing-devise

When I sign up or sign out I don’t get a flash message as shown in the
tutorial, what could be the problem here?

Thanks.

Abder-Rahman A. wrote:

In following this tutorial:
http://railscasts.com/episodes/209-introducing-devise

When I sign up or sign out I don’t get a flash message as shown in the
tutorial, what could be the problem here?

Thanks.

Hi Abder-Rahman

Keep an eye on your migration file … if you’re using User as your
devise model. Check if these are available before running the rake

  t.database_authenticatable :null => false
  t.recoverable
  t.rememberable
  t.trackable

See to it that your application.html.erb has the following flash codes
like.

<% flash.each do |name, msg| %> <%= content_tag :div, msg, :id => "flash_#{name}" %> <% end %> <%= content_tag :h1, yield(:title) if show_title? %> <%= yield %>

cheers,

Andre

Thanks a lot Andre.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs