undefined method `username’ for 1:Fixnum
Extracted source (around line #3):
1: <% form_tag (:action => ‘update_password’, :id => @user) do %>
2: enter old password
3: <%= password_field ‘user’, ‘username’ %>
4:
5: enter new password
6: <%= password_field ‘user’, ‘password’ %>
I got above error run this program. please any one help me…
source:
<% form_tag (:action => ‘update_password’, :id => @user) do %>
enter old password
<%= password_field ‘user’, ‘username’ %>
enter new password
<%= password_field ‘user’, ‘password’ %>
enter confirm password
<%= password_field ‘user’, ‘new_password’ %>
<%= submit_tag “Submit” %>
<% end %>
thanks,
karthik