Oluwayomi Oluwadara wrote:
In the sample application used in 'Agile Web Development with Rails' they define a Cart class (which is not derived from ActiveRecord::Base). In their StoreController class they define a find_cart method as: [code] def find_cart @cart = (session[:cart] ||= Cart.new) end [/code] Whether this has any applicability to your case is impossible to know without knowing a lot more about your application. -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. |
- Re: [Rails] Need help...NameError in InteractControlle... Susan McM. Tucker
- Re: [Rails] Need help...NameError in InteractCont... Oluwayomi Oluwadara
- Re: [Rails] Need help...NameError in InteractControlle... Norm Scherer
- Re: [Rails] Need help...NameError in InteractCont... Oluwayomi Oluwadara
- Re: [Rails] Need help...NameError in Interact... Colin Law
- Re: [Rails] Need help...NameError in Inte... Oluwayomi Oluwadara
- Re: [Rails] Need help...NameError in ... Colin Law
- Re: [Rails] Need help...NameErro... amit kumar
- Re: [Rails] Need help...Name... Oluwayomi Oluwadara
- Re: [Rails] Need help...NameErro... Oluwayomi Oluwadara
- Re: [Rails] Need help...Name... Norm Scherer
- Re: [Rails] Need help...Name... Oluwayomi Oluwadara
- Re: [Rails] Need help...Name... tom
- Re: [Rails] Need help...Name... Oluwayomi Oluwadara
- Re: [Rails] Need help...Name... Colin Law
- Re: [Rails] Need help...Name... Oluwayomi Oluwadara
- Re: [Rails] Need help...Name... Oluwayomi Oluwadara
- Re: [Rails] Need help...Name... Norm Scherer
- Re: [Rails] Need help...Name... Oluwayomi Oluwadara
- Re: [Rails] Need help...NameError in Interact... maryam kamali