[Rails] Re: Request with Content-Type: "application/json" add extra parameter.

2014-01-25 Thread Matt Jones
On Thursday, 18 April 2013 15:19:09 UTC-4, rob...@capansis.com wrote: > > Hi Frederick, > > Thanks for the help, disabling wrap_parameters in my initializer fixed my > problem. Reason why I am setting the content type for the GET is just > because I have jQuery to always ask for JSON. I could

[Rails] Re: Request with Content-Type: "application/json" add extra parameter.

2014-01-24 Thread Trigger Woods
Is there meaning of adding a check of method type (GET or POST/PUT) to ParamsWrapper#_wrapper_enabled? For example: def _wrapper_enabled? return false if request.get? ref = request.content_mime_type.try(:ref) _wrapper_formats.include?(ref) && _wrapper_key && !

[Rails] Re: Request with Content-Type: "application/json" add extra parameter.

2013-04-18 Thread robert
Hi Frederick, Thanks for the help, disabling wrap_parameters in my initializer fixed my problem. Reason why I am setting the content type for the GET is just because I have jQuery to always ask for JSON. I could probably set it to only send the header on POST/PUT requests, but I would still h

[Rails] Re: Request with Content-Type: "application/json" add extra parameter.

2013-04-18 Thread Frederick Cheung
On Thursday, April 18, 2013 5:10:14 AM UTC+1, rob...@capansis.com wrote: > Howdy, > > > > Is there any way I can just turn off this functionality?  I think it might be > because this is an EventsController, and Rails is trying to give me something > for free, but I just want to send over what