Newbie question: undefined local variable or method , why??
- by Mellon
I am new in Rails (I am using Rails 3.0.3), currently I am following the book "Agile Web Development with Rails" to develop a simple rails application.
I followed the book to:
--create a model 'Cart' class;
--implement 'add_to_cart' method in my 'store_controller',
I have a line of code
<%=button_to "Add to Cart", :action => add_to_cart, …