In the learning stage of Rails developments one will come across different scenarios of handling parameters from Rails forms that are submitted. Also since Rails 4 introduced Strong Parameters there are some additional things to keep in mind. Form Params 101
|
Parameters: { "utf8"=>"✓", "authenticity_token"=>"nqLr/ZukyXt5/sFNU9FGciBbSOSJ2MkE7Roo5WwfVEo=", "profile"=>{ "first_name"=>"Daniel", "last_name"=>"Clark", "socials_attributes"=>{ "0"=>{ "kind"=>"twitter", "username"=>"@6ftdan" } } }, "button"=>"" } |
Submitted forms return a JSON response with data in it. You can access…
Continue Reading »