I have database password in my database.yml as "passw0rd" however when I go to http://localhost:3000/rails/info/properties I get this error: private method `gsub'' called for 1:Fixnum But if I just use "password" for my password everything is ok. Any ideas? -- Posted via http://www.ruby-forum.com/.
On Wednesday, March 29, 2006, at 7:36 PM, Scott F. Walter wrote:>I have database password in my database.yml as "passw0rd" however when I >go to http://localhost:3000/rails/info/properties I get this error: > >private method `gsub'' called for 1:Fixnum > >But if I just use "password" for my password everything is ok. > >Any ideas? >What database are you using? I''ve used a similar password for both Oracle and MySQL, and not had that problem. -- Lori Olson http://blog.dragonsharp.com -- Posted with http://DevLists.com. Sign up and save your time!
> -----Original Message----- > From: rails-bounces@lists.rubyonrails.org > [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of > Scott F. Walter > Sent: Wednesday, March 29, 2006 10:37 AM > To: rails@lists.rubyonrails.org > Subject: [Rails] Database passwords with numbers > > > I have database password in my database.yml as "passw0rd" > however when I > go to http://localhost:3000/rails/info/properties I get this error: > > private method `gsub'' called for 1:Fixnum > > But if I just use "password" for my password everything is ok. > > Any ideas?Which adapter? What version of Rails? Dan
Berger, Daniel wrote:>> however when I >> go to http://localhost:3000/rails/info/properties I get this error: >> >> private method `gsub'' called for 1:Fixnum >> >> But if I just use "password" for my password everything is ok. >> >> Any ideas? > > Which adapter? What version of Rails? > > DanSorry for no details. Rails 1.1 and Mysql adapter. -- Posted via http://www.ruby-forum.com/.
Lori Olson <devlists-rubyonrails@...> writes:> > > On Wednesday, March 29, 2006, at 7:36 PM, Scott F. Walter wrote: > >I have database password in my database.yml as "passw0rd" however when I > >go to http://localhost:3000/rails/info/properties I get this error: > > > >private method `gsub'' called for 1:Fixnum > > > >But if I just use "password" for my password everything is ok. > > > >Any ideas? > > > > What database are you using? I''ve used a similar password for both > Oracle and MySQL, and not had that problem. > > -- > > Lori Olson > http://blog.dragonsharp.com >I got the same thing. For me, it looks like it happens when it tries to escape the HTML. I duplicated the same error message by calling gsub on a int. My guess is there''s an integer in the request data somewhere? My Error log: C:/InstantRails/ruby/lib/ruby/1.8/cgi.rb:362:in `escapeHTML_fail_on_nil'' (Ok, it won''t let me post the rest cause it''s too long) Dumb.
Tae Kim wrote:> Lori Olson <devlists-rubyonrails@...> writes: > >> >Any ideas? >> > >> >> What database are you using? I''ve used a similar password for both >> Oracle and MySQL, and not had that problem. >> >> -- >> >> Lori Olson >> http://blog.dragonsharp.com >> > > I got the same thing. For me, it looks like it happens when it tries to > escape > the HTML. I duplicated the same error message by calling gsub on a int. > My guess > is there''s an integer in the request data somewhere? > > My Error log: > > C:/InstantRails/ruby/lib/ruby/1.8/cgi.rb:362:in `escapeHTML_fail_on_nil'' > > (Ok, it won''t let me post the rest cause it''s too long) Dumb.got the same error I''m using mysql, with password sandra1. tks for your tip. -- Posted via http://www.ruby-forum.com/.