search for: users_attribut

Displaying 1 result from an estimated 1 matches for "users_attribut".

Did you mean: users_attributes
2010 Oct 02
2
How to write a test hash for a nested form??
How to write a hash for a nested form?? Example form fields (main model is Practice, nested is User): practice[name] practice[users_attributes][0][email] I want to do this: post: post :create, :practice => { :name => "any name", :users_attributes => { :0 => { :email => "anyone-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" } } } The issue is that I can not create a symbol for 0 - :0 and :0.to_sym don...