You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to create an object, I get this error:
ArgumentError: wrong number of arguments (2 for 1)
from /usr/lib/ruby/gems/1.9.1/bundler/gems/parse_resource-7851169f01ba/lib/base.rb:74:in `belongs_to'
In the model for the object, I have this line, that seems to be the culprit.
belongs_to :user, :class_name => "fromUser"
The code works when it is just
belongs_to :user
It works fine when the class name is just 'user', but not if i try to change it. Has the class name attribute for belongs_to been implemented? Thanks for the help.
The text was updated successfully, but these errors were encountered:
When trying to create an object, I get this error:
ArgumentError: wrong number of arguments (2 for 1)
from /usr/lib/ruby/gems/1.9.1/bundler/gems/parse_resource-7851169f01ba/lib/base.rb:74:in `belongs_to'
In the model for the object, I have this line, that seems to be the culprit.
belongs_to :user, :class_name => "fromUser"
The code works when it is just
belongs_to :user
It works fine when the class name is just 'user', but not if i try to change it. Has the class name attribute for belongs_to been implemented? Thanks for the help.
The text was updated successfully, but these errors were encountered: