Get rid of flash hook and clean up passwords after registration.

This commit is contained in:
José Valim
2010-04-01 13:11:02 +02:00
parent dac7887d7c
commit 16666b7587
6 changed files with 20 additions and 27 deletions

View File

@@ -1,6 +1,6 @@
class SessionsController < Devise::SessionsController
def new
flash[:notice] = "Welcome to #{controller_path.inspect} controller!"
flash[:special] = "Welcome to #{controller_path.inspect} controller!"
super
end
end

View File

@@ -7,7 +7,7 @@
<body>
<div id="container">
<%- flash.each do |name, msg| -%>
<%= content_tag :div, msg, :id => "flash_#{name}" if msg.is_a?(String) %>
<%= content_tag :div, msg, :id => "flash_#{name}" %>
<%- end -%>
<% if user_signed_in? -%>