<% if flash[:notice].empty? then puts flash[:message]%></p>
whats wrong with the if statement here..?
puts won't work in rhtml. You can try this: <%= flash[:message] if flash[:notice].empty? %>
Regards, Rimantas
<% if flash[:notice].empty? then puts flash[:message]%></p>
whats wrong with the if statement here..?
puts won't work in rhtml. You can try this: <%= flash[:message] if flash[:notice].empty? %>
Regards, Rimantas