[Rails] routing error

2009-02-19 Thread Sony Sebastian
Hello, I have set up an application using scaffolding, which have all basic method(index/new/edit/show/..). But when I tried to add a new method it showing routing errors. ~~~ class ItemsController < ApplicationController def in

[Rails] wrong number of arguments (1 for 0)

2009-02-18 Thread Sony Sebastian
Hello, I am new to ruby on rails. When I tried to create a session I am getting an error, 'wrong number of arguments (1 for 0)', in my controller. ArgumentError in CustomerController#add_to_cart wrong number of arguments (1 fo