similar to: New version of the AWDwR beta book available

Displaying 20 results from an estimated 1000 matches similar to: "New version of the AWDwR beta book available"

2006 Aug 02
2
Help please: AWDWR -- Migration failure
I''m having a problem with one of the migration files from the depot application. ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:migrate == AddPrice: migrating ======================================================== -- add_column(:products, :price, :decimal, {:scale=>2, :default=>0, :precision=> 8}) rake aborted! You
2006 Aug 07
4
AWDwR typography question
So, I''ve been listing to stuff folks have been saying about the Bookman font we use. Most people like the font, but some feel there aren''t enough words/line, so your eyes move too much. So, I spent the weekend playing with typography, and I''ve come up with a compromise. The thing is: it looks good to me, but I don''t want to mess up the read for others
2007 Aug 21
4
[AWDwR] Confused about has_one and has_many
Heya everyone! I am quite new to Rails and I am reading AWDwR. I am at Task E "Check Out!". I understand it quite well, but I have a problem with the last playground exercise: Add a Table which contains the payment types. All goes well, but I am not sure whether I should use has_many or has_one(as in the Playground wiki at http://wiki.pragprog.com/cgi-bin/wiki.cgi/PT-E-3). I use the
2006 Jul 21
20
New version of AWDwR
Folks: I''ve uplaoded the B1.05 version of AWDwR. It fixes a number of reported errata (and a few that weren''t reported :), and adds two significant changes: 1. It now uses the new Active Record decimal -> BigDecimal conversion. I''ve personally been waiting for this for a long time, and I''m really happy it''s now part of core. However,
2006 Jul 16
17
AWDWR question
In an early section on Action View, showing code being put directly into the rhtml file: <% require ''date'' DAY_NAMES = %w{ Sunday Monday Tuesday Wednesday Thursday Friday Saturday } today = Date.today %> <h1>Hello, Dave</h1> <p> It''s <%= DAY_NAMES[today.wday] %>. Tomorrow is <%= DAY_NAMES[(today + 1).wday %>. </p> I get this
2006 Aug 03
1
Migration not working
I''m working my way though Agile web development 2nd ed. I got to the part where you add test data into the database, or the 003_add_test_data file. When I ran the rake db:migrate, it seemed to work, but the database did not populate, as it didn''t show up when I called admin/list from my browser. I went into the mysql server and checked the database with the "select * from
2006 Aug 16
4
Accessing Constants Declared in Helper Modules
Hello all, I''m having great trouble accessing a constant declared in a helper for one of my view templates. I am trying to create a grouped selection list based on a predefined set of values. Rather than declare this set of values in the view, I wanted to put it in the helper that automatically gets included for the view. Unfortunately, it doesn''t seem to work. All methods
2008 Mar 01
2
No route matches with {:method=>:get} Error in AWDWR Book
Hi I''m working on the AWDWR book and I''m on the admin section of the book. I have rails 2 installed on my machine and I have ran into an error when I created my controller login but when I go to http://localhost:3000/login/index I get this error: No route matches "/login/index" with {:method=>:get} I haven''t touched the routes.rb file and when I generated
2006 Mar 07
17
Handling Erros from AWDWR
I''m getting to the point now where I really need to start trapping the errors. So from my AWDWR book, I added the following directly from the book into application.rb... def rescue_action_in_public(exception) case exception when ActiveRecord::RecordNotFound, ActionController::UnknownAction render(:file => "#{RAILS_ROOT}/public/404.html",
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
2005 Jul 26
1
--delete problem
Hello, the list. Didn't find any answer in the archive (a hit, but no answer :-() testing rsync, I use the following line: rsync --rsync-path=/usr/bin/rsync -e ssh --delete -valptz --safe-links * jdd@mecum:~/temp/test between a mandrake 10.1 and a suse 9.0 a create a dummy file in start dir, run rsync, file is transfered. I delete the file in start dir, run rsync, the file is _not_
2006 Jun 26
3
Streamlined
I was looking at Justin Gehtland''s blog. There are instructions on getting started with Streamlined, however gems returned an error that streamlined was not in the repository. I guess Justin is putting the preparations down ? Stuart
2006 Feb 07
1
AWDWR: NameError (uninitialized constant UnknownAction) in rescue_action_in_public
I copied (and modified) this code from AWDWR: def rescue_action_in_public(exception) case exception when ActiveRecord::RecordNotFound, ActionController::UnknownAction render :template=>''/error'', :layout=>''application'', :status=>''404 Not Found'' else render :template=>''/error'',
2006 Aug 14
1
AWDWR Chpt6: Webrick Get...200... then ...500...
Hi, Rails produces to diff Gets on the Webrick: AWDWR Chpt 6 strange results: First browser call to /Admin shows correct form; - And WEBrick reports: "Get /admin HTTP/1.1" 200 485 - -> /admin Subsequent browser calls to /Admin show: NoMethodError in AdminController#index undefined method `each'' for #<Mysql:0x37aba80> - And WEBrick reports: "Get /admin
2006 May 05
0
(P)review of AWDwR and R4R
Hello, A lot of discussion is going on about AWDwR 2nd ed, i have decided to write an entry about it (and R4R) after reading few chapters: http://www.rubyrailways.com/fisrt-impressions-of-awdr-2nd-ed-and-r4r/ Cheers, Peter
2006 Jun 14
0
[AWDwR] Make flash[:notice] go away
Following the tutorial app in Agile Rails, I''m trying to figure out the best way to get the flash notice to go away after an "Invalid product" is selected (eg. when a new, valid product is selected). This is after Task D, Chapter 9, in the 2nd Ed Beta. I''ve come close to getting to work right, but I think I may still be missing something in the control flow of
2008 Feb 06
1
Try-Catch AWDWR P3.0, Sect9.2,Mid pg 121.
On page 118, file store_controller.rb, the "redirect_to_index" is added. At mid page 120, that line is removed. When the browser is first sent to the ":3000/store", the page displays properly. But when the Add to Cart button is clicked, the browser displays the text of a try-catch block (see below). There is no error message - the browser clearly sees text to be displayed. If I
2006 Nov 12
0
AWDWR : Validation Question
Fig 6.4 on page 73 shows only "Price is not a number" for validation when wibble is entered for price but I get the following message: * Price is not a number * Price should be at least 0.01 Is this an error in the book? TIA. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Oct 14
1
[ADV] Making space: First Edition AWDwR Paper Books: $12.50
When we announced the second edition of Agile Web Development with Rails back in May, we pretty much killed the sales of the first edition paper book. So now, with the second edition just a few months away, we need to clear out some space. So, if you''d like to pick up a first edition paper book, they''re going (while stocks last) for $12.50 (plus shipping) from
2006 May 02
96
[ADV] Second Edition of Agile Web Development with Rails
ANNOUNCING AGILE WEB DEVELOPMENT WITH RAILS, SECOND EDITION =========================================================== http://www.pragmaticprogrammer.com/titles/rails2/ Rails has changed a lot since we announced the first edition of the book a year ago. DHH says that the 1.1 release "boasts more than 500 fixes, tweaks, and features from more than 100 contributors." Who are we to