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" => "
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
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
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
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
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