# 500 Internal Server Error - wrong number of arguments

**URL:** <https://www.ruby-forum.com/t/500-internal-server-error-wrong-number-of-arguments/136808>\
**Category:** Rails\
**Created:** [May 6, 2008, 3:39pm UTC](https://www.ruby-forum.com/t/500-internal-server-error-wrong-number-of-arguments/136808 "2008-05-06T15:39:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![saljamil](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@saljamil](https://www.ruby-forum.com/u/saljamil)\
**Post date:** [May 6, 2008, 3:39pm UTC](https://www.ruby-forum.com/t/500-internal-server-error-wrong-number-of-arguments/136808/1 "2008-05-06T15:39:23Z")

</div>

I am getting the following error:

/!\ FAILSAFE /!\ Tue May 06 08:32:25 -0500 2008  
Status: 500 Internal Server Error  
wrong number of arguments (2 for 0)

I looked at the controller code and I am not using ruby send command  
or anything that looks like code that redefine rails method. The error  
message does not really help in pointing where the problem occurs. Any  
ideas on how to debug this? Thanks

---

<div class="post-metadata">

**Author:** ![saljamil](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@saljamil](https://www.ruby-forum.com/u/saljamil)\
**Post date:** [May 6, 2008, 3:51pm UTC](https://www.ruby-forum.com/t/500-internal-server-error-wrong-number-of-arguments/136808/2 "2008-05-06T15:51:21Z")

</div>

On 6 May 2008, at 14:38, saljamil wrote:

> I am getting the following error:
> 
> /!\ FAILSAFE /!\ Tue May 06 08:32:25 -0500 2008  
> Status: 500 Internal Server Error  
> wrong number of arguments (2 for 0)

Quick guess: do you have an action called process ?

Fred

---

<div class="post-metadata">

**Author:** ![saljamil](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@saljamil](https://www.ruby-forum.com/u/saljamil)\
**Post date:** [July 7, 2009, 8:12pm UTC](https://www.ruby-forum.com/t/500-internal-server-error-wrong-number-of-arguments/136808/3 "2009-07-07T20:12:03Z")

</div>

Frederick C. wrote:

> Quick guess: do you have an action called process ?
> 
> Fred

Yes, I did have an action called process. Thank you Fred!! I couldn’t  
figure out what was causing such a weird error. Renaming the action  
from “process” to “process\_login” fixed the problem.

---

<div class="post-metadata">

**Author:** ![saljamil](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee7513/32.png) [@saljamil](https://www.ruby-forum.com/u/saljamil)\
**Post date:** [May 6, 2008, 3:56pm UTC](https://www.ruby-forum.com/t/500-internal-server-error-wrong-number-of-arguments/136808/4 "2008-05-06T15:56:06Z")

</div>

Please disregard this posting. I found the issue. I had a method  
called “process” in my controller which I guess is causing the  
confusion. I changed it to “lprocess” and that fixed the issue.
