Hmmmmm. Yes, It works indeed as you say.Thanks for that. To tell you truth, 
I tried that from the beginning, but it didn't work for me. But probably 
was 
error on the client side not sending the correct request, rather than on 
the server side.

Thanks a lot.
Best
Panayotis

On Friday, August 7, 2015 at 11:17:49 PM UTC+3, tamouse wrote:
>
>
>
> On Fri, Aug 7, 2015 at 10:08 AM, Panayotis Matsinopoulos <
> [email protected] <javascript:>> 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/96c3b6c3-1111-4389-8857-c9675d4da1a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to