Displaying 1 result from an estimated 1 matches for "asdfsa".
Did you mean:
asdfas
2006 May 09
2
Problem creating new record
...age:
ActiveRecord::AssociationTypeMismatch in Device#create
DeviceCategory expected, got String
/app/controllers/device_controller.rb:21:in `create''
script/server:51
Request
Parameters: {"device"=>{"name"=>"asdfsa",
"description"=>"dfasdfasdf", "device_category"=>"3", "model"=>"asdf"},
"commit"=>"Create"}
The given below is the code of device_controller.rb near line 21.
20 def create
21 @device = Device....