Hello,
I am very new to ruby on rails so any help would be greatly appreciated,
sorry if I don''t include enough useful information as I am unsure what
will be needed to help with this error.
I am using ruby 1.8.3 on debian "testing" along with lightttpd and
fastcgi. I have a controller called "main" as you can see in the
error
output, and when trying to load the index.rhtml file I get a weird error
about the arguments given, but I am unsure where this is coming from
since I have no arguments in the URL...
I am using a rails component to load items for a menu that is displayed on
the Main rhtml page, but other than that, nothing is even performed from
the main_controller just simply loading content from the layout and the
view.
Any help on where to begin to find this error would be great.
See error output below...
Thanks.
__
Donnie
Error output:
ArgumentError in Main#index
wrong number of arguments (3 for 0)
RAILS_ROOT: /home/www/modernlend/public/../config/..
Application Trace | Framework Trace | Full Trace
#{RAILS_ROOT}/vendor/actionpack/lib/action_controller/base.rb:825:in
`initialize''
#{RAILS_ROOT}/vendor/actionpack/lib/action_controller/base.rb:825:in
`initialize_template_class''
#{RAILS_ROOT}/vendor/actionpack/lib/action_controller/base.rb:362:in
`process_without_session_management_support''
#{RAILS_ROOT}/vendor/actionpack/lib/action_controller/session_management.rb:116:in
`process''
#{RAILS_ROOT}/vendor/railties/lib/dispatcher.rb:38:in `dispatch''
/home/www/modernlend/public/dispatch.fcgi:26
/usr/lib/ruby/1.8/fcgi.rb:600:in `each_cgi''
/usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi''
/home/www/modernlend/public/dispatch.fcgi:26
#{RAILS_ROOT}/vendor/actionpack/lib/action_controller/base.rb:825:in
`initialize''
#{RAILS_ROOT}/vendor/actionpack/lib/action_controller/base.rb:825:in
`initialize_template_class''
#{RAILS_ROOT}/vendor/actionpack/lib/action_controller/base.rb:362:in
`process_without_session_management_support''
#{RAILS_ROOT}/vendor/actionpack/lib/action_controller/session_management.rb:116:in
`process''
#{RAILS_ROOT}/vendor/railties/lib/dispatcher.rb:38:in `dispatch''
/home/www/modernlend/public/dispatch.fcgi:26
/usr/lib/ruby/1.8/fcgi.rb:600:in `each_cgi''
/usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi''
/home/www/modernlend/public/dispatch.fcgi:26
#{RAILS_ROOT}/vendor/actionpack/lib/action_controller/base.rb:825:in
`initialize''
#{RAILS_ROOT}/vendor/actionpack/lib/action_controller/base.rb:825:in
`initialize_template_class''
#{RAILS_ROOT}/vendor/actionpack/lib/action_controller/base.rb:362:in
`process_without_session_management_support''
#{RAILS_ROOT}/vendor/actionpack/lib/action_controller/session_management.rb:116:in
`process''
#{RAILS_ROOT}/vendor/railties/lib/dispatcher.rb:38:in `dispatch''
/home/www/modernlend/public/dispatch.fcgi:26
/usr/lib/ruby/1.8/fcgi.rb:600:in `each_cgi''
/usr/lib/ruby/1.8/fcgi.rb:597:in `each_cgi''
/home/www/modernlend/public/dispatch.fcgi:26
Request
Parameters: None
Show session dump
flash: !map:ActionController::Flash::FlashHash {}
Response
Headers: {"cookie"=>[],
"Cache-Control"=>"no-cache"}