ArgumentError
wrong number of arguments (2 for 1)
RAILS_ROOT: ./script/../config/..
Then the full trace:
#{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:104:in `require_or_load'
#{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:104:in
`prepare_application'
#{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:39:in `dispatch'
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel/rails.rb:73:in
`process'
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:551:in
`process_client'
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:550:in
`process_client'
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:636:in
`run'
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:636:in
`run'
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:625:in
`run'
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:956:in
`run'
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:955:in
`run'
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/bin/mongrel_rails:127:in
`run'
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel/command.rb:199:in
`run'
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/bin/mongrel_rails:235
#{RAILS_ROOT}/vendor/rails/activesupport/lib/active_support/dependencies.rb:357:in
`load'
#{RAILS_ROOT}/vendor/rails/railties/lib/commands/servers/mongrel.rb:48
C:/INSTAN~1/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
#{RAILS_ROOT}/vendor/rails/activesupport/lib/active_support/dependencies.rb:364:in
`require'
#{RAILS_ROOT}/vendor/rails/railties/lib/commands/server.rb:39
script/server:3
Dark Ambient wrote:
> I'm running into an error and not sure where to even look.
> ArgumentError
>
> wrong number of arguments (2 for 1)
You haven't given us much to go on. When does this happen? What
application code is being executed?
Best regards,
Bill
Stuart
Stuart
NoMethodError
undefined method `first' for :users:Symbol
This error occured while loading the following files:
./script/../config/../config/routes.rb
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/routing.rb:405:in
`initialize_components'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/routing.rb:339:in
`initialize'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/routing.rb:615:in
`connect'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/routing.rb:644:in
`named_route'
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/routing.rb:650:in
`method_missing'
#{RAILS_ROOT}/config/routes.rb:7
#{RAILS_ROOT}/config/routes.rb:1
-e:4
I keep looking at routes and nothing is standing out.
jst my 2c :)
Regards
Stef
Dark Ambient wrote:
>
> Sorry , for all the posts, but I am running it in the
> RadRails browser and getting a different error:
Some thoughts...
Have you verified that the problem is application-specific? Are you able to
run any of your other apps? Are you using Apache? If so, have you checked
to verify that you get the same error under WEBrick?
hth,
Bill
Stuart
On 9/12/06, Bill Walton <bill....@charter.net> wrote:
>
Stuart
On 9/12/06, Dark Ambient <samb...@gmail.com> wrote:
> Yes, I made some changes - installed Restful
> Authentication , which required I do a up to
> Edge Rails. So possibly the problem is with
> edge .
You might want to download InstantRails and test your app on it. That could
help you figure out where to look next.
Best regards,
Bill
Thank you
Stuart
On 9/12/06, Bill Walton <bill....@charter.net> wrote:
>
Uh, no idea why that'd happen. Does your app work under Webrick? Did
you modify your intall somehow?
--
Zed A. Shaw
http://www.zedshaw.com/
http://mongrel.rubyforge.org/
http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.
> However I am using InstantRails which is what I have
> installed to develop with anyway.
Just for future communications....
You might want to rethink your statement about "I am using InstantRails."
You might have started with InstantRails, but that ain't where you are now
WRT anybody trying to understand your environment so they can help you
through your problems.
Just food for thought.
Bill
Stuart
On 9/12/06, Bill Walton <bill....@charter.net> wrote:
>
Dark Ambient wrote:
> I'm not following you Bill. AFAIK Instant Rails
> is an installation of ROR and includes ruby, gems,
> etc. If I'm using another version of rails in an app,
> how does that change my installation ?
When you post a request for help here you're hoping, best case, that someone
will try to reproduce the problem you're having, be able to do so, and then
help you figure out what's going wrong.
If, for example, you posted a problem I found interesting, posted your code,
and told me you were using InstantRails, I might be inclined to download IR
and see if I could help. But you're not working on the code base I'd be
trying to reproduce your problem on. And when I found out that you'd wasted
my time by not bothering to give me the information needed to actually help
you... well, I might not be inclined to expend as much energy the next time
around.
hth,
Bill
Stuart
On 9/12/06, Bill Walton <bill....@charter.net> wrote:
>
No problem. Thanks for getting it. I hope my comments didn't seem harsh as
that wasn't my intention.
Best regards,
Bill
On 9/13/06, Bill Walton <bill....@charter.net> wrote:
>
> Hi Stuart,
>