On Fri, Aug 7, 2015 at 10:08 AM, Panayotis Matsinopoulos <
[email protected]> wrote:
> The question here is whether the way I get the data on controller is the
> recommended way to do it, or whether there is other more Rails/better way
> to do it.
>
>
The data is also available in params:
params[:foo] == "bar"
The (potential) problem is that params will also contain additional fields
added by ActionDispatch: params[:controller] and params[:action], so it
won't be *only* the parsed request body.
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/CAHUC_t-0gr8ck7GG8DJahcAB83e-0UrL-5DNgfGXBKVzZ-hu4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.