Re: Rails parameter question...

2012-03-18 Thread Carson Gross
Thanks guys, this is very promising. I think I've almost got a middleware app going. I've got the following class: class CustomHandler def initialize(app) puts "Initialized..." @app = app end def call(env) if env["PATH_INFO"] =~ /\/bad_path\// [201, {"Content-Type" => "

Re: Rails parameter question...

2012-03-17 Thread Dan Croak
Peeking into the Rails 2.3.8, params parsing is handled by ActionContoller::ParamsParser, which is located in actionpack/lib/action_controller/params_parser.rb: https://github.com/rails/rails/blob/240f4e944cd90fca138aba8467456043952110cc/actionpack/lib/action_controller/params_parser.rb ParamsPar

Re: Rails parameter question...

2012-03-17 Thread Jeff Schmitz
Can you do this part as a rack app? Jeff On Mar 17, 2012, at 4:32 PM, Carson Gross wrote: > According to my tests, yes, the parameter parsing happens before the > before_filters are run. > > Thanks, > Carson > > On Mar 17, 11:15 am, Jeff Schmitz wrote: >> Does Rails parse the body prior to

Re: Rails parameter question...

2012-03-17 Thread Carson Gross
According to my tests, yes, the parameter parsing happens before the before_filters are run. Thanks, Carson On Mar 17, 11:15 am, Jeff Schmitz wrote: > Does Rails parse the body prior to any before_filters run? > > Jeff > > On Mar 17, 2012, at 12:57 PM, Carson  Gross wrote: > > > > > > > > > Hey

Re: Rails parameter question...

2012-03-17 Thread Jeff Schmitz
Does Rails parse the body prior to any before_filters run? Jeff On Mar 17, 2012, at 12:57 PM, Carson Gross wrote: > Hey Guys, > > This is a rails question, so please ignore if that doesn't interest > you. > > Does anyone know if there is a way to make rails *not* parse the body > of an XML p

Rails parameter question...

2012-03-17 Thread Carson Gross
Hey Guys, This is a rails question, so please ignore if that doesn't interest you. Does anyone know if there is a way to make rails *not* parse the body of an XML post to a given controller method? I've been googling for an hour now and can't figure it out. Basically we've got some huge XML doc