Ruby on Rails Wednesday, August 22, 2018


I know how to update records, but not sure where I should put my code when product qty == 0.
I do have a flash notice on the show page that displays a message when the last item is left. 

 Should I put update the records on the show page as well ?  (when qty == 0 )

Thanks,
Joe  

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d42a9d8f-ac89-49d1-bb26-7485877e3b84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment