similar to: (Agile Rails 2nd ED) Depot App: Iteration B1 500 Error

Displaying 20 results from an estimated 1000 matches similar to: "(Agile Rails 2nd ED) Depot App: Iteration B1 500 Error"

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 Aug 04
6
Errors ... errors and errors.
I bought the second edition of the ruby on rails, it seems to work fine now, did some adjustments to the code. But now I get a second error and I want to learn to understand to fix them myself. So here is the error. ArgumentError in StoreController#add_to_cart wrong number of arguments (1 for 0) #{RAILS_ROOT}/app/models/cart.rb:15:in `initialize'' #{RAILS_ROOT}/app/models/cart.rb:15:in
2008 Jul 10
5
Uninitialized constant (controller/model)
NameError in StoreController#add_to_cart uninitialized constant StoreController::Cart This is the controller: class StoreController < ApplicationController def index @products = Product.find_products_for_sale end def add_to_cart @cart = find_cart product = Product.find(params[:id]) @cart.add_product(product) end private def find_cart session[:cart] ||=
2005 Dec 15
3
Rails: Select and html forms
I''m close to getting this to work, but not quite there. I''m trying to implement a dropdown control, with the current choice selected. I have the following code in the view: 5 <select id="product_product_type" name="product[product_type]"> 6 <%= 7 types = ProductType.find(:all, :order => "product_type") 8
2003 Dec 22
3
runif and sample with reproducibility
Hello, I would like to sample a population but the result needs to be reproducible, using 'runif' or 'sample' is the good way to do it but I can't manage to make the results reproducible even with the 'set.seed' function. My aim is that th call to 'sample(1:100,10)' gives always the same result, how can I do that? Thanks! Eric Esposito
2003 Mar 12
2
How to collect the Rtools to build packages
After reading the readme.packages file, I would like to install the R tools in order to build my own packages, but the internet portal http://www.stats.ox.ac.uk/pub/Rtools/ hasn't been working since a few days. Where can I get the file tools.zip? Thank you! Eric Esposito
2016 Jun 05
1
flac conversion
On 5 June 2016 at 21:34, Frank Esposito <fpesposito at gmail.com> wrote: > Hello -- > > I have a flac file encode 92/24bit -- what tools are available to > convert these files to wave 44.1/16 bit so then I can convert to > mp3? Thanks > > -- > Frank Esposito Don't you mean 96/24? Also, which platform (*nix, Mac, Windows)? Off the top of my head: Audacity,
2009 Dec 13
20
Need help...NameError in InteractController#add_to_cart
Hi,I am developing a web app and am following the text-Agile web development.....Each time I click my "add to cart" button" i always get the  page below:I have double checked to see if i have errors in my code,there was none,please what do i need to do to proceed? NameError in InteractController#add_to_cartundefined local variable or method `find_cart'' for
2005 Nov 09
1
OpenSSH 3.4p1 - end of support date ??
For AT&T, looking to find the end of support date for OpenSSH version 3.4 p1. I am not sure if this software is supported but am looking at all software used by AT&T to determine end of support dates needed for a 2006 technology upgrade project. Any information you could supply would be greatly appreciated. Mark Esposito Computer Sciences Corporation ACS Technical Infrastructure
2004 Oct 21
1
Insert image in Rd documentation files
Hello, Does anyone know if it is posssible to insert a picture (ps or jpg for example) in documentation files with Rd extension. I guess it's impossible but maybe there is a trick. Thank you! Eric Esposito ================================== Direction de la Recherche P??le Economie, Statistisques et Sociologie 361 avenue du Pr??sident Wilson - BP 33 93211 Saint-Denis La Plaine cedex
2004 Oct 21
1
Problem with vignettes
Hello, I'm trying to insert a vignette as a word document in my package. After compiling and installing the package, the word file is in the doc directory, but no link in the html index for vignettes is created. I tried with a pdf file and there is the same problem. It seems that only sweave format files are taken into account, is it normal? Is there something special to do to take other file
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 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
2006 Jan 05
0
Help with the Agile Depot application tutorial
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 08
0
Agile book depot question
I have been working on implementing a variant of the depot example as a method of learning rails. I have come up against a css question that is driving me nuts. This may not be the right forum to ask this question. If anyone would like to refer me to another place to ask, I would be grateful. Most of the code that I am working on is straight from the examples, with minor alterations. What is
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 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 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 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:
2005 Dec 30
1
Problems with Testing (Depot) demo app in Agile Rails book
I''ve encountered a perplexing problem whilst following along the demo app in the "Agile Web Development with Rails" book. Any help would be greatly appreciated. Here is a brief time line of my tale of woe:- 0. Been programming (business apps) and designing/building DBs for two decades - but new to both Ruby and Rails (so I apologise in advance if I''ve made some