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"
%>

Password: <%= password_field "user", "password"
%>

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