|
 |
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 .
|
 |
|
|

January 23rd, 2007, 10:40 AM
|
Registered User
|
|
Join Date: Jan 2007
Location: Minneapolis
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

February 5th, 2007, 02:22 PM
|
Registered User
|
|
Join Date: Feb 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|

February 5th, 2007, 04:25 PM
|
Registered User
|
|
Join Date: Jan 2007
Location: Minneapolis
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

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
|
|
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
|

June 18th, 2007, 05:47 PM
|
Registered User
|
|
Join Date: Jun 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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!
|

April 1st, 2008, 10:37 PM
|
Registered User
|
|
Join Date: Apr 2008
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i did the same as Jamie, just changed the \ to / and it worked
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |