Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Open Source > BOOK: Beginning Ruby on Rails
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Ruby on Rails
This is the forum to discuss the Wrox book Beginning Ruby on Rails by Steve Holzner Ph.D.; ISBN: 9780470069158
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Ruby on Rails section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old April 13th, 2008, 09:24 PM
Registered User
Join Date: Apr 2008
Location: , , .
Posts: 5
Thanks: 0
Thanked 3 Times in 2 Posts
Default Chapter 5 - start_form_tag is now form_for

If you're trying to do the example in Chapter 5 that begins on page 137 in Ruby 2.0.2, you'll need to change "start_form_tag" to form_tag."

You can see the documentation for form_tag here:


You can see a handy list of methods that don't work after the 2.0 upgrade here:


It would be really nice if the author of this book would post a list of things that won't work in 2.0 without changes to the book's code.

The Following 2 Users Say Thank You to davidtspf For This Useful Post:
MarieMcKeeth (March 22nd, 2009)
  #2 (permalink)  
Old April 13th, 2008, 09:24 PM
Registered User
Join Date: Apr 2008
Location: , , .
Posts: 5
Thanks: 0
Thanked 3 Times in 2 Posts

P.S. Likewise, end_form_tag is now just simply "form_tag"

The Following User Says Thank You to davidtspf For This Useful Post:
  #3 (permalink)  
Old December 12th, 2008, 01:09 AM
Registered User
Join Date: Dec 2008
Location: Shizuoka, Japan
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up input.rhtml for RoR 2.2.2

P.147 input.html.erb

<title>Using Text Fields</title>

<h1>Working With Text Fields</h1>
This Ruby on Rails application lets you read data from text fields.

<% form_tag('/look/at') do %>
Please enter your name.
<%= text_field ("cruncher", "crunch", {"size" => 30}) %>
<%=submit_tag (value="SUBMIT") %>
<% end %>


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 2 - End of chapter exercises whizzkid1892 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 July 30th, 2008 12:02 PM
chapter 7 - chapter 11 pelopito BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 3 January 6th, 2008 10:40 AM
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM

All times are GMT -4. The time now is 12:34 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.