Phlip
2009-Mar-03 01:19 UTC
an external API wants to call our action with a param of action=
Railsters: "Convention over Configuration" rules, right? Especially when you indeed have the option to configure, when you need to, right? An affiliate of ours needs to send us a param query with ''action='' in it. This confuses our router, and it attempts to call our action! Yes we will ask the affiliate to change the query parameter name. Until then, is there some hook we can call - before routes.rb - to rename this parameter before Rails proper sees it? (Fiddling with Apache''s rewriter module, just for a dumb param, sounds icky!) -- Phlip http://www.zeroplayer.com/ --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Greg Donald
2009-Mar-03 04:48 UTC
Re: an external API wants to call our action with a param of action=
On Mon, Mar 2, 2009 at 7:19 PM, Phlip <phlip2005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Until then, is there some hook we can call - before routes.rb - to rename this > parameter before Rails proper sees it?http://tinyurl.com/d3ad3o -- Greg Donald http://destiney.com/ --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Phlip
2009-Mar-03 16:11 UTC
Re: an external API wants to call our action with a param of action=
Greg Donald wrote:> On Mon, Mar 2, 2009 at 7:19 PM, Phlip <phlip2005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Until then, is there some hook we can call - before routes.rb - to rename this >> parameter before Rails proper sees it? > > http://tinyurl.com/d3ad3oThanks, asshole. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mathieu Rousseau
2009-Mar-03 16:33 UTC
Re: an external API wants to call our action with a param of action=
Obviously this was not a http://lmgtfy.com/ material, because philip asked about another way than apache. But Insult may not be the best solution. I''ve been following this group for a couple of weeks now and that''s the first time i see such thing... :-( On Tue, Mar 3, 2009 at 1:11 PM, Phlip <phlip2005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Greg Donald wrote: > > On Mon, Mar 2, 2009 at 7:19 PM, Phlip <phlip2005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Until then, is there some hook we can call - before routes.rb - to > rename this > >> parameter before Rails proper sees it? > > > > http://tinyurl.com/d3ad3o > > Thanks, asshole. > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Greg Donald
2009-Mar-03 22:26 UTC
Re: an external API wants to call our action with a param of action=
On Tue, Mar 3, 2009 at 10:11 AM, Phlip <phlip2005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thanks, asshole.No problem. -- Greg Donald http://destiney.com/ --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---