similar to: When do you protect a method?

Displaying 20 results from an estimated 20000 matches similar to: "When do you protect a method?"

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
2011 Oct 20
2
Agile book apache2.conf: Forbidden You don't have permission to access / on this server.
Appreciate any help - I am working through Agile web development (4.0) and am stuck on the deployment using phusion passenger. I get this: "Forbidden You don''t have permission to access / on this server." when I put depot.yourhost.com in the browser. I have been through various web searches and for file permissions and suggestions to change the <Files> container.
2006 Feb 12
0
no method error - you have a nil object....
hi, i''ve been cracking my head on this one for a while and would be humbly grateful for any pointers i''m working through Agile Web Devopment w Rails and, in the depot example have created the cart class for session handling, but am getting the following error, which suggests the @items variable is not being populated with any data from LineItem NoMethodError (You have a
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 Mar 30
3
simple migration problem
Hi: I''m running RoR 1.1 I''m going through the Agile book Depot example and I want to generate my next migration file so i''m typing ./script/generate migration depot I was sort of expecting to get the file 002_depot.rb .. instead i''m being informed that there already exists a migration named depot..and no new file is generated.. should I be using a new
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 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
error Before updating scaffolding?
Hello all, I am a bit hung up. I have created a simple table (pluralized) named aircrews and I have edited my database.yml file to point to the database that I created and that is holding the table aircrews. I have gone through the depot tutorial in the Agile book and when I have run the scaffolding command for the depot app all has worked fine for the table products. Now when I run the ruby
2006 May 06
0
RE: Rails Digest, Vol 20, Issue 156
I am looking for a ruby hosting service. Can any one recommend one for me. -----Original Message----- From: rails-request@lists.rubyonrails.org [mailto:rails-request@lists.rubyonrails.org] Sent: Saturday, May 06, 2006 7:37 AM To: rails@lists.rubyonrails.org Subject: Rails Digest, Vol 20, Issue 156 Send Rails mailing list submissions to rails@lists.rubyonrails.org To subscribe or
2006 Jun 08
7
The Agile Book Messageboard?
Hello. Where is there an Agile Messageboard? On the first part of the Depot example, a price field shouldn''t be an integer right? (it should be more of a float since a price has decimals) Dominic Son -- Posted via http://www.ruby-forum.com/.
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
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
2006 Jul 05
2
Protecting Static content
Hi, I want to build a rails backed site which, in addition to some dynamic content, also comprises a number of static content files. There are some static html pages, some powerpoint presentations, and some PDF documents. I want to make sure that the user is logged in before they can access the protected content. I''ve gone through the ''Agile development with
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 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 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 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 Jun 05
3
New to rails
Hi, I''m 8+ hours reading and working through the book "Agile Web Development". My brain is now mush :) I have some php experience but that about the extent of my programming experience. Anyway, I do have a question - for those who know the book or those who don''t - The product table has a column for an image link ..i.e. /images/something.gif As part of the exercise
2012 Mar 01
1
help stylesheet_link_tag
I was reading the book "Agile Web Development with Rails 4th Edition". In Chapter 11, Iteration C2: Adding a Page Layout 1 <!DOCTYPE html> - <html> - <head> - <title>Pragprog Books Online Store</title> 5 <%= stylesheet_link_tag "scaffold" %> - <%= stylesheet_link_tag "depot", :media => "all" %> - <%=