Ruby on Rails
Saturday, October 26, 2019
When submitting a get request by form my params hash doesn't begin with resource name but instead just with the colomns within the resource
Processing by ItemsController#new as HTML
Parameters: {"item_type"=>"Pez dispenser", "commit"=>"New item", "utf8"=>"✓"}
Completed 400 Bad Request in 14ms (ActiveRecord: 0.0ms)
I'm expecting item to be prepended before {"item_type"=> ...
Parameters: {"item_type"=>"Pez dispenser", "commit"=>"New item", "utf8"=>"✓"}
Completed 400 Bad Request in 14ms (ActiveRecord: 0.0ms)
I'm expecting item to be prepended before {"item_type"=> ...
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/975d1133-45be-42cc-b48b-4aead5c6ea7c%40googlegroups.com.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment