# An external API wants to call our action with a param of action=

**URL:** <https://www.ruby-forum.com/t/an-external-api-wants-to-call-our-action-with-a-param-of-action/161851>\
**Category:** Rails\
**Created:** [March 3, 2009, 2:20am UTC](https://www.ruby-forum.com/t/an-external-api-wants-to-call-our-action-with-a-param-of-action/161851 "2009-03-03T02:20:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phlip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Post date:** [March 3, 2009, 2:20am UTC](https://www.ruby-forum.com/t/an-external-api-wants-to-call-our-action-with-a-param-of-action/161851/1 "2009-03-03T02:20:55Z")

</div>

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/](http://www.zeroplayer.com/)

---

<div class="post-metadata">

**Author:** ![Phlip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Post date:** [March 3, 2009, 5:49am UTC](https://www.ruby-forum.com/t/an-external-api-wants-to-call-our-action-with-a-param-of-action/161851/2 "2009-03-03T05:49:13Z")

</div>

On Mon, Mar 2, 2009 at 7:19 PM, Phlip [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](http://tinyurl.com/d3ad3o)

–  
Greg D.  
[http://destiney.com/](http://destiney.com/)

---

<div class="post-metadata">

**Author:** ![Phlip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Post date:** [March 3, 2009, 5:11pm UTC](https://www.ruby-forum.com/t/an-external-api-wants-to-call-our-action-with-a-param-of-action/161851/3 "2009-03-03T17:11:58Z")

</div>

Greg D. wrote:

> On Mon, Mar 2, 2009 at 7:19 PM, Phlip [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](http://tinyurl.com/d3ad3o)

Thanks, asshole.

---

<div class="post-metadata">

**Author:** ![Phlip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Post date:** [March 3, 2009, 5:34pm UTC](https://www.ruby-forum.com/t/an-external-api-wants-to-call-our-action-with-a-param-of-action/161851/4 "2009-03-03T17:34:58Z")

</div>

Obviously this was not a [http://lmgtfy.com/](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… ☹

---

<div class="post-metadata">

**Author:** ![Phlip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Post date:** [March 3, 2009, 11:27pm UTC](https://www.ruby-forum.com/t/an-external-api-wants-to-call-our-action-with-a-param-of-action/161851/5 "2009-03-03T23:27:18Z")

</div>

On Tue, Mar 3, 2009 at 10:11 AM, Phlip [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Thanks, asshole.

No problem.

–  
Greg D.  
[http://destiney.com/](http://destiney.com/)
