On Tuesday, September 18, 2012 12:28:00 PM UTC-4, gsw wrote:

>         respond_with(errors: [@company.errors], location: users_url, 
> status: unprocessable_entity)
>
>
Ugh. Didn't need the array around @company.errors either.

    respond_with(errors: @company.errors, location: users_url, status: 
unprocessable_entity)

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/iAQGlf56yNYJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to