Displaying 1 result from an estimated 1 matches for "bob_shop".
2009 Feb 18
3
wrong number of arguments (1 for 0)
...hen 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 for 0)
RAILS_ROOT: /project/bob_shopping
Application Trace | Framework Trace | Full Trace
app/controllers/customer_controller.rb:36:in `session''
app/controllers/customer_controller.rb:36:in `add_to_cart''
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My controller is ...
def add_to_cart
if r...