On Sat, Nov 28, 2009 at 5:02 PM, CoolAJ86 <[email protected]> wrote:
> I lied about lying; I was actually telling the truth.
> (it was expecting the json I was posting to be translated to an object
> params[:my_model_name] but actually it was put in params[:_json]
> [:my_model_name].
>
> But I can't find where it is that I Rails determines whether to use
> the overridden method or the original method so that I can tell it to
> allow JSON as well.

It's actually not Rails code which does this anymore but a Rack
middleware called Rack::MethodOverride which is part of Rack

http://rack.rubyforge.org/doc/classes/Rack/MethodOverride.html

-- 
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

--

You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to