On Dec 15, 2011, at 8:39 AM, txapelgorri wrote:

> Hi:
> 
> Here it is (sorry, quite long...):
> 
> hobo (1.3.0) lib/hobo/model.rb:408:in
> `attributes_with_hobo_type_conversion='
> activerecord (3.0.10) lib/active_record/base.rb:1412:in `initialize'
> hobo (1.3.0) lib/hobo/model/permissions.rb:45:in `new'
> hobo (1.3.0) lib/hobo/model/permissions.rb:45:in `user_new'
> hobo (1.3.0) lib/hobo/controller/model.rb:547:in `new_for_create'
> hobo (1.3.0) lib/hobo/controller/model.rb:518:in `hobo_create'

Finally had a chance to look at this - the problem is that the generated name 
for the parameters is colliding with one of the Rails built-in parameters. The 
code in hobo_create is looking for the attributes in a parameter named the 
singular version of the controller name (PostsController -> :post).

The issue is that, in your case, this yields :action - a parameter Rails fills 
in with the action name during routing, overriding the data that's passed in.

You may want to rename that model; I'll do some digging and see if there's 
another way.

--Matt Jones




-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to