I have asked several questions about drag and drop, ajax and shopping cart here in this forum. I bought a copy of Agile Web Development with Rails (2nd Edition) and thought my nightmare would have been over. From Chapter 5 to Chapter 13, it covers the design of a shopping cart. However it was built on rails 1.2. The Pandora box had just been opened. I found and followed Sean Lynch''s blogs "Rails 2.0 and Scaffolding Step by Step"at http://fairleads.blogspot.com/2007/12/rails-20-and-scaffolding-step-by-step.html. Everything seems fine. I am now stuck when I wanted to get a prettier listing i.e. para.6.4 of the book and towards the end of Lynch''s blog. There is an error in my work. 10: <img class="list-one-sheet" src="<%= product.image_url%>"/> Lynch has asked us to insert some paragraphs into the scaffold.css file. I did that. #product-list .list-one-sheet { width: 60px; height: 70px; } Could anyone tell me what went wrong? regards -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> Could anyone tell me what went wrong? > regardsI found out what had gone wrong myself: the DB table name is plural! So far so good. Let''s see how the project: depot as depicted in Agile Web Deveopment works with rails 2.0.2. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
No, could you tell *us* what went wrong? :) Really, what''s your error? You only told us that you are now stuck, not how. -Kyle On Apr 13, 9:00 pm, Dror Chung <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I have asked several questions about drag and drop, ajax and shopping > cart here in this forum. I bought a copy of Agile Web Development with > Rails (2nd Edition) and thought my nightmare would have been over. > > From Chapter 5 to Chapter 13, it covers the design of a shopping cart. > However it was built on rails 1.2. The Pandora box had just been opened. > I found and followed Sean Lynch''s blogs "Rails 2.0 and Scaffolding Step > by Step"athttp://fairleads.blogspot.com/2007/12/rails-20-and-scaffolding-step-b.... > > Everything seems fine. I am now stuck when I wanted to get a prettier > listing i.e. para.6.4 of the book and towards the end of Lynch''s blog. > There is an error in my work. > > 10: <img class="list-one-sheet" src="<%= product.image_url%>"/> > Lynch has asked us to insert some paragraphs into the scaffold.css file. > I did that. > #product-list .list-one-sheet { > width: 60px; > height: 70px;} > > Could anyone tell me what went wrong? > regards > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---