Hello,when i added the find-cart method(private access) that the controller is
loking for, am now getting this syntax error message.Ithis is my method:
private def find_cart session[:cart] ||= Cart.new end
SyntaxError in
InteractController#add_to_cart/Users/oluwayomioluwadara/Documents/CED/coursework/heritage/heritage/app/models/cart.rb:19:
syntax error, unexpected $end, expecting kENDRegards and Respects,
Kindness in thought leads to wisdom.
Kindness in speech leads to eloquence.
Kindness in action leads to love.
--- On Wed, 12/16/09, Colin Law <[email protected]> wrote:
From: Colin Law <[email protected]>
Subject: Re: [Rails] Need help...NameError in InteractController#add_to_cart
To: [email protected]
Date: Wednesday, December 16, 2009, 5:39 AM
2009/12/16 Oluwayomi Oluwadara <[email protected]>
>
> I am following the text" agile web development with rails"
> here is my code,
There is no point repeatedly posting the same code. As has been
pointed out several times the problem is that you are missing the
find_cart method. In Agile Development With Rails this is in the
StoreController, as has also been pointed out to you previously. I
suggest you go back to the book and have another look. I believe you
can even download the application source if you wish.
Colin
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.