Stupid Error That I will Blame on Lack of Sleep

November 12th, 2007 by Justin Ball

So if you are ever working oh so hard on a ruby on rails application and all of a sudden your application stops working and you have no idea why because the error looks like this:


/!\ FAILSAFE /!\ Mon Nov 12 17:27:15 -0700 2007
Status: 500 Internal Server Error
wrong number of arguments (1 for 0)
/Users/jbasdf/projects/indulge/vendor/rails/actionpack/lib/
action_controller/base.rb:513:in `send'
.....

Step back. Call yourself and idiot and remove the method you just added because you can't ever name a method 'send' in your controller because it overrides default functionality and then pukes all over the place.

Bad programmer ... bad bad programmer.

Tags:   · · 3 Comments

Leave A Comment

3 responses so far ↓

  • 1 Greg Willis Nov 14, 2007 at 6:57 am

    Hello Justin.

    I saw your post about your Rails headache and thought to drop you a line.

    I’m the accounts manager with FiveRuns, a Rails management company. We provide a service that monitors key performance metrics within Rails as well as traditional LAM stacks.

    Feel free to take a look via a 30 day trial – http://www.fiveruns.com.

    Please let me know if you have any questions or would like to chat for 5-10 minutes.

    Cheers,

    Greg Willis
    512-342-6363

  • 2 Nate Feb 4, 2008 at 11:27 pm

    Hahha – caught! Thank you for your post. My dumbass was creating a controller for sending SMS messages and my brilliant noobness just named a method said method name. Thank you sir. Thank you. Dually shamed…

  • 3 marcelo marqueti Jun 16, 2008 at 7:59 pm

    Hi my friend!!
    I do the same mistake ! I dont belive !! two days to find the problem !! Oh God !
    And I will implement the method to send SMS ..like the another people here !
    tks for your rescue post!