Login design problem

Hi, I am trying to implement the tutorial on this site.
http://www.devarticles.com/c/a/Ruby-on- … -on-Rails/

Everyone seems to be going fine except for the view for the login

<% if @flash[:message] %>

<%= @flash[:message] %>
<% end %>
<% if @flash[:error] %>
<%= @flash[:error] %>
<% end %>

<%= form_tag :action => ‘process_login’
%>
Username: <%= text_field “user”, “username” %>
Password: <%= password_field “user”, “password” %>
<%= submit_tag %>
<%= end_form_tag %>

FOr some reason I am having a nil error for
<% if @flash[:message] %>

<%= @flash[:message] %>
<% end %>
<% if @flash[:error] %>
<%= @flash[:error] %>
<% end %>

Is the syntax wrong?

Thanks,
Kane

@flash should be flash
I think that changed quite some time ago and some
old tutorials still have it @flash.
same goes for @params, this is params now

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