Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > BOOK: Beginning Ruby on Rails
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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:

http://api.rubyonrails.org/

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

http://www.slashdotdash.net/articles...-upgrade-notes

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
Default

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, 02: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


Quote:
<html>
<head>
<title>Using Text Fields</title>
</head>

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

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

</body>
</html>


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 11:40 AM
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.