Displaying 2 results from an estimated 2 matches for "user_id_before_type_cast".
2006 Jun 13
2
Custom Primary Key, Using Primary Key in Form "gives before_type_cast" error?
...t_field ''user'', ''user_password'', :MAXLENGTH =>"20" %>
<%= submit_tag "Login" %>
<%= end_form_tag %>
I get an error
NoMethodError in Login#login
Showing app/views/login/login.rhtml where line #11 raised:
undefined method `user_id_before_type_cast'' for #<User:0x3cb61e8>
Extracted source (around line #11):
8: </tr>
9: <tr>
10: <td>Username</td>
11: <td><%= text_field ''user'', ''user_id'', :MAXLENGTH =>"10" %></td>
12: </tr>...
2006 Jun 14
0
Custom Primary Key, Using Primary Key in Form gives "before_type_cast" error?
...t_field ''user'', ''user_password'', :MAXLENGTH =>"20" %>
<%= submit_tag "Login" %>
<%= end_form_tag %>
I get an error
NoMethodError in Login#login
Showing app/views/login/login.rhtml where line #11 raised:
undefined method `user_id_before_type_cast'' for #<User:0x3cb61e8>
Extracted source (around line #11):
8: </tr>
9: <tr>
10: <td>Username</td>
11: <td><%= text_field ''user'', ''user_id'', :MAXLENGTH =>"10" %></td>
12: </t...