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
  <!-- app/views/user/login.rhtml -->
  <% if @flash[:message] %><div><%= @flash[:message] %></div><% end %>
  <% if @flash[:error] %><div><%= @flash[:error] %></div><% end %>

  <%= form_tag :action => 'process_login'
%>
   Username: <%= text_field "user", "username" %>&#x00A;
    Password: <%= password_field "user", "password" %>&#x00A;
    <%= submit_tag %>
  <%= end_form_tag %>

FOr some reason I am having a nil error for
  <% if @flash[:message] %><div><%= @flash[:message] %></div><% end %>
  <% if @flash[:error] %><div><%= @flash[:error] %></div><% 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