Hi. I have a working Rails app, and now whenever I use ./script/generate controller NewCont send the newly generated controller throws ArgumentError in NewCont#send The message is wrong number of arguments (1 for 0) ./script/server:49 Anyone seen this before? I have restarted the server. And the rest of the site continues to work fine. But I now cannot add any new controllers. Also, does anyone know how to invoke the debugger from the Exception page? If I set a breakpoint in my code I can get to it with the ./script breakpointer, but nothing happens when I retry with breakpoint from the page. Thanks Ed
On Fri, 2005-10-14 at 17:02 -0500, Ed Howland wrote:> Hi. > > I have a working Rails app, and now whenever I use > ./script/generate controller NewCont send > > the newly generated controller throws ArgumentError in NewCont#send > > The message is > > wrong number of arguments (1 for 0)In that it''s a Ruby keyword, try a name other than send and see if that solves it.
On 10/14/05, Howard Roberts <lordkhaos-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote:> On Fri, 2005-10-14 at 17:02 -0500, Ed Howland wrote: > > I have a working Rails app, and now whenever I use > > ./script/generate controller NewCont send > > > > the newly generated controller throws ArgumentError in NewCont#send > > > > The message is > > > > wrong number of arguments (1 for 0) > In that it''s a Ruby keyword, try a name other than send and see if that > solves it.Thanks, that apparently was it. Ed