Displaying 1 result from an estimated 1 matches for "dfasdfasdf".
Did you mean:
asdfasdf
2006 May 09
2
Problem creating new record
...ch 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.new(params[:device])
22
23 if @device.save
24...