Abder-Rahman Ali 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.

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

cheers,

Andre
-- 
Posted via http://www.ruby-forum.com/.

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

Reply via email to