similar to: Help with the Agile Depot application tutorial

Displaying 20 results from an estimated 20000 matches similar to: "Help with the Agile Depot application tutorial"

2006 Jan 05
2
Agile Depot Tutorial Help
anyone can explain me why in the Agile Depot Tutorial application they use i.product_id to find if a product already exist in the cart, because the cart contains items, each of them references a product. I tried i.product_id like in the tutorial and i.product.i all of these 2 notation works , but i find the second seems more clean??? isn''t it. Any explanation will be fine Regards
2006 Jan 05
0
question about Agile Rails
anyone can explain me why in the Agile Depot Tutorial application they use i.product_id to find if a product already exist in the cart, because the cart contains items which each of them reference a product. I tried i.product_id like in the tutorial and i.product.i all of these 2 notation works , but i find the second s more clean. Any explanation will be fine Regards def
2006 Feb 26
0
NoMethodError in Agile Web Devleopment Depot Tutorial
I''m working on building the shopping cart in the Depot tutorial in the Agile Web Development book. I''m at the part (about page 80) where you build the ability to add items to the cart. I''m able to get to /store/display_cart/ and it seems items are being added, but if I just click on a link to add an item (/store/add_to_cart/2) it gives me this: NoMethodError in
2007 Feb 07
1
The Depot "Add to Cart" sessions question (2.ed agile book)
Hello, Im in the process of working my way through the 2.ed of the agile book. As many of you already know, the book goes through the regular development cycle of the Depot application. I have hit a wall when they started talking about the sessions and the exact mechanics of how an item is added to the session. The code looks like this: depot/app/controllers/store_controller: def add_to_cart
2006 May 05
1
Agile Rails (1st edition), depot TDD "exercise"
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I''ve been working my way through the Agile book and just completed the depot sample application. I learned quite a bit along the way. On page 171 we are led through the creation of a test (that fails) for new code. The new code (a search function) is left as an exercise for the reader. Well, I think I solved it but I''m not
2006 Jan 25
2
Agile tutorial
Thank you for the comments on conditional replacements. I now have another oddity to deal with. When adding products to the session cart I am not able to have the count incremented if the product has already been selected, rather another item is added to the cart. I copied the code from the book as carefully as I could and could find no error but to be sure I then cut and pasted the code
2006 Feb 24
0
Depot Application - Adding a Quantity field to the Store
Hello, I''m just getting started with Ruby on Rails. Of course, I bought the "Agile Programming..." book. I went through the shopping cart (depot) tutorial without any problem. However, I would like to change the cart so that one can enter a quantity for each item desired. I''m assuming that each item would need to be converted to include a form with the a hidden field
2006 Feb 27
1
Odd problem in Agile tutorial
I am getting an undefined method error in my cart.rb class when trying to find in an array. I cannot see what my error is. Perhaps a view more eyes can help me with this: #--------------------------------------------------------------- 1 class Cart 2 3 attr_reader :items 4 attr_reader :total_price 5 6 def initialize 7 @items = [] 8
2006 Apr 11
2
Extending Depot Example
Hi I am new to the whole Rails/Ruby world as having come from a MS .NET background, but I have followed the Depot example in the Agile Web Dev. with Rails book with relative ease. However as an exercise to see how much I had understood, I thought I would attempt to modify the example a bit and add a Quantity field to the store index so as to pass that value into the cart. I have extended the
2006 Feb 27
0
Depot - How to change the Store to a Form based application?
Hello, I''m just getting started with Ruby on Rails. Of course, I bought the "Agile Programming..." book. I went through the shopping cart (depot) tutorial without any problem. However, I would like to change the cart so that one can enter a quantity for each item desired. Has anyone else tried to do this? Can anyone point me in the right direction? Thanks! Brad -- Posted
2006 Feb 05
8
Agile Rails book: depot problem
I recently finished the first part of the "Agile Rails" book. But, the depot doesn''t completely work as it should. I still have 2 problems: I will explain them in 2 threads. The first one is: I can''t destroy products (I can only creat and update them). When I try to delete a product --> http://localhost:3001/admin/destroy/3 I get this error message:
2006 Jun 24
2
Migrations problem with Agile Rails book
I am following the instructions on Agile Web Development with Rails book "Iteratio E1: Capturing an Order" section. When I run the migrations I get the following error. rake db:migrate (in /Users/balaparanj/work/depot) -- execute("alter table line_items \n add constraint fk_line_item_products \n foreign key (product_id) references products(id)") rake
2006 Apr 18
1
''depot''app, trouble with session / cookies
Many of you probably know the ''depot'' app from the ''Agile Rails development'' book. When the view changes from ''Store'' to ''display_cart,'' a session containing the shopping-cart (:cart) is supposed maintain the ''cart'' between calls, but when the display_cart stub view shows up, I have always ZERO elements
2006 Apr 16
9
''depot'' app, where''s session?
Many of you probably know the ''depot'' app from the ''Agile Rails development'' book. I have constructed the ''products'' model, the Store-controller, and the ''Cart'' and ''Line Item'' classes. I have told Application-controller about :cart and :line_item: model :cart model :line_item Here''s part of
2006 May 06
1
depot test-driven development exercise
(I posted this yesterday but within 20 minutes my thread was hijacked so I''m not sure anyone really saw this.) I''ve been working my way through the Agile book and just completed the depot sample application. I learned quite a bit along the way. On page 171 we are led through the creation of a test (that fails) for new code. The new code (a search function) is left as an
2006 Mar 15
4
New RadRails tutorial using AWDWR book
Hello there, I am basically a J2EE refugee fascinated with Rails. I have been using the Spring framework (a lightweight J2EE java framework with some special characteristics) but I am so impressed with RoR that I am porting over many applications. In order to "dive into Rails", of course the second thing to do was get myself an IDE, and since I''ve been using Eclipse for the
2006 Feb 21
0
Blog of building Agile Web Development w/Rails Depot App using Ackbar/KirbyBase (Chapter 6-7)
Sorry for the long Subject line, but I couldn''t figure out what else to call it. :-) Just a quick announcement to tell you that I have worked through Chapters 6 and 7 so far of "Agile Web Development with Rails", using Ackbar/KirbyBase to develop the Depot app instead of MySQL. You can find my blog about it at: http://houseonfire.wordpress.com For those who
2006 Apr 25
2
agile depot app login failure :(
Hi *, In an attempt to go back to the drawing board and learn RoR some more - I have built the depot application from the agile book. After finishing I tried to create a user for the admin section, however when ever I go to: http://localhost:3000/login/add_user It redirects to the login action, I don''t see the [add user] submit button?? I am sure this is connected to the
2006 Jun 26
5
Newbie question about Agile Rails book - Delete from cart
I have been working through the Agile Web Development with Rails book doing the Depot tutorial. I have completed it and it works but I cant say I understand how and why. My question is this "After adding products to the Cart, how do I then give users the option to delete just one item and not empty the whole cart?" I''ve been playing around with all sorts of code, just making
2006 Apr 18
4
''depot'' tutorial failing on adding to cart
Hi I''m very keen to learn RoR and have been following the Agile Web Development with Rails book (first edition). However, I''ve come across a problem which has had me stumped for days now. After following the instructions up to page 85 I have tried testing the code thus far, as suggested, by adding an item to the cart. But I am getting the following error: --