Displaying 2 results from an estimated 2 matches for "will_return".
2006 Jun 13
17
reconstituting a date
In my view code, I have <%= datetime_select "in_out", "time_in" %>
which returns in params
:in_out: !map:HashWithIndifferentAccess
time_in(1i): "2006"
time_in(2i): "6"
time_in(3i): "12"
time_in(4i): "20"
time_in(5i): "24"
and I want to save that datetime to a column in the db...
if
2006 Jun 12
0
struggling with relatively simple out of model updating
...sfully updated.''
redirect_to :action => ''list''
else
render :action => ''edit_io''
end
end
The error I get is...
ActiveRecord::AssociationTypeMismatch
InOut expected, got String
Request
Parameters: {"user"=>{"will_return"=>"", "in_out"=>"In"}, "commit"=>"
Save ", "id"=>"19"}
Users table has
add_column :users, :in_out, :string, :limit => 3
add_column :users, :will_return, :string, :limit => 48
How can I do this?
C...