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
 
Old January 23rd, 2007, 10:40 AM
Registered User
 
Join Date: Jan 2007
Location: Minneapolis
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 5 read text & checkbox: a stopper!

My templates won't come up properly. The input form is adding extra characters to the URL query like this:
Instead of /look/at being passed, it is passing %5Clook/%5Cat and of course the controller can't find that template. If I enter /look/at manually in the url, it returns the template with the correct response.

I am running Mandrake 10.2, and the "hello" example worked but these aren't working. I have checked the typing very carefully, and posted requests for assistance on the RonR forums which resulted in a. a suggestion that there was a character escaping problem of unknown source and b. maybe I am running the wrong version of Ruby or Rails.
My Ruby is 1.8.2 which this book says is acceptable, and my Rails is 1.8.6 which should the latest.

Thanks much for any assistance. I am kind of stuck here until I can resolve such an elementary problem.

 
Old February 5th, 2007, 02:22 PM
Registered User
 
Join Date: Feb 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ever get this square? Same issue here..nothing in errata and have dowloaded code from book.
os: xp
ruby: 1.82
rails: 1.85

Very...very...frustrating.

Quote:
quote:Originally posted by zeitguy
 My templates won't come up properly. The input form is adding extra characters to the URL query like this:
Instead of /look/at being passed, it is passing %5Clook/%5Cat and of course the controller can't find that template. If I enter /look/at manually in the url, it returns the template with the correct response.

I am running Mandrake 10.2, and the "hello" example worked but these aren't working. I have checked the typing very carefully, and posted requests for assistance on the RonR forums which resulted in a. a suggestion that there was a character escaping problem of unknown source and b. maybe I am running the wrong version of Ruby or Rails.
My Ruby is 1.8.2 which this book says is acceptable, and my Rails is 1.8.6 which should the latest.

Thanks much for any assistance. I am kind of stuck here until I can resolve such an elementary problem.

 
Old February 5th, 2007, 04:25 PM
Registered User
 
Join Date: Jan 2007
Location: Minneapolis
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No, and I really ran all over town with it. I ended up downloading and installing a more recent version of Ruby ... 1.8.6 ... and now I can't get webrick to run at all. Too many other things to take care of to spend much more time on this book and its examples a the moment. Too bad, as I expected to be through most of the tutorials by now.

I am going to try the OReilly book soon. Will post back if that goes more smoothly. It was all coded on an XP platform, fwiw. I am going to stay with Linux for security reasons.

 
Old February 23rd, 2007, 05:34 AM
Registered User
 
Join Date: Feb 2007
Location: Juneau, AK, .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm using Mandriva also and had the same problem on page 124.
Got it to work by doing this:

changed '<form action = "\look\at" >'
to '<form action = "look/at" >'

ditto for similar examples in this chapter

 
Old June 18th, 2007, 05:47 PM
Registered User
 
Join Date: Jun 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It looks like it all depends on the web browser you are using. The code works fine on IE, but does not work on Firefox. So I found out the hard way!

 
Old April 1st, 2008, 10:37 PM
Registered User
 
Join Date: Apr 2008
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i did the same as Jamie, just changed the \ to / and it worked






Similar Threads
Thread Thread Starter Forum Replies Last Post
Set Text to checkbox myself.panku ASP.NET 2.0 Basics 1 March 17th, 2008 05:33 AM
Warning: CSS show stopper jimibt BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 April 5th, 2007 03:39 PM
read & write file C# minhpx General .NET 1 February 21st, 2005 04:14 PM
Extract text from text file & put in dropdown box tsukey Beginning PHP 5 July 20th, 2004 09:49 PM





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