Sony Thomas
2010-Jul-21 06:39 UTC
Please help --> Getting error ERROR NoMethodError: private method `gsub!'' called for #<Class:0x47a8e38>
[2010-07-21 11:35:18] ERROR NoMethodError: private method `gsub!'' called for #<Class:0x47a8e38> C:/Applns/Ruby187/lib/ruby/1.8/webrick/htmlutils.rb:16:in `escape'' C:/Applns/Ruby187/lib/ruby/1.8/webrick/httpresponse.rb:232:in `set_error'' C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/rails-2.2.3/lib/ webrick_server.rb:94:in `handle_file'' C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/rails-2.2.3/lib/ webrick_server.rb:73:in `service'' C:/Applns/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' C:/Applns/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in `start'' C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:95:in `start'' C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `each'' C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `start'' C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:23:in `start'' C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:82:in `start'' C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/rails-2.2.3/lib/ webrick_server.rb:60:in `dispatch'' C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/rails-2.2.3/lib/ commands/servers/webrick.rb:66 C:/Applns/Ruby187/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:31:in `gem_original_require'' C:/Applns/Ruby187/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:31:in `require'' C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.2.3/ lib/active_support/dependencies.rb:153:in `require'' C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.2.3/ lib/active_support/dependencies.rb:521:in `new_constants_in'' C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.2.3/ lib/active_support/dependencies.rb:153:in `require'' C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/rails-2.2.3/lib/ commands/server.rb:49 C:/Applns/Ruby187/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:31:in `gem_original_require'' C:/Applns/Ruby187/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:31:in `require'' script/server:3 127.0.0.1 - - [21/Jul/2010:11:35:18 India Standard Time] "GET / HTTP/ 1.1" 500 338 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
kannav rajeev
2010-Jul-21 07:07 UTC
Re: Please help --> Getting error ERROR NoMethodError: private method `gsub!'' called for #<Class:0x47a8e38>
Write the code here pleZse On Wed, Jul 21, 2010 at 12:09 PM, Sony Thomas <sony.thomas4-uxC5H9eHYlcAvxtiuMwx3w@public.gmane.org> wrote:> [2010-07-21 11:35:18] ERROR NoMethodError: private method `gsub!'' > called for #<Class:0x47a8e38> > C:/Applns/Ruby187/lib/ruby/1.8/webrick/htmlutils.rb:16:in > `escape'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/httpresponse.rb:232:in > `set_error'' > C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/rails-2.2.3/lib/ > webrick_server.rb:94:in `handle_file'' > C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/rails-2.2.3/lib/ > webrick_server.rb:73:in `service'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:104:in > `service'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:65:in > `run'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:173:in > `start_thread'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in > `start'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in > `start_thread'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:95:in `start'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `each'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `start'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:23:in `start'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:82:in `start'' > C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/rails-2.2.3/lib/ > webrick_server.rb:60:in `dispatch'' > C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/rails-2.2.3/lib/ > commands/servers/webrick.rb:66 > C:/Applns/Ruby187/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `gem_original_require'' > C:/Applns/Ruby187/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `require'' > C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.2.3/ > lib/active_support/dependencies.rb:153:in > `require'' > C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.2.3/ > lib/active_support/dependencies.rb:521:in > `new_constants_in'' > C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.2.3/ > lib/active_support/dependencies.rb:153:in > `require'' > C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/rails-2.2.3/lib/ > commands/server.rb:49 > C:/Applns/Ruby187/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `gem_original_require'' > C:/Applns/Ruby187/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `require'' > script/server:3 > 127.0.0.1 - - [21/Jul/2010:11:35:18 India Standard Time] "GET / HTTP/ > 1.1" 500 338 > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Thanks: Rajeev sharma -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
<sony.thomas4-uxC5H9eHYlcAvxtiuMwx3w@public.gmane.org>
2010-Jul-21 07:15 UTC
RE: Please help --> Getting error ERROR NoMethodError: private method `gsub!'' called for #<Class:0x47a8e38>
Just try to "http://localhost:3000/" after starting the webrick server. :-( -----Original Message----- From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-talk@googlegroups.com] On Behalf Of kannav rajeev Sent: Wednesday, July 21, 2010 12:37 PM To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: Re: [Rails] Please help --> Getting error ERROR NoMethodError: private method `gsub!'' called for #<Class:0x47a8e38> Write the code here pleZse On Wed, Jul 21, 2010 at 12:09 PM, Sony Thomas <sony.thomas4-uxC5H9eHYlcAvxtiuMwx3w@public.gmane.org> wrote:> [2010-07-21 11:35:18] ERROR NoMethodError: private method `gsub!'' > called for #<Class:0x47a8e38> > C:/Applns/Ruby187/lib/ruby/1.8/webrick/htmlutils.rb:16:in > `escape'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/httpresponse.rb:232:in > `set_error'' > C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/rails-2.2.3/lib/ > webrick_server.rb:94:in `handle_file'' > C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/rails-2.2.3/lib/ > webrick_server.rb:73:in `service'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:104:in > `service'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:65:in > `run'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:173:in > `start_thread'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in > `start'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in > `start_thread'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:95:in `start'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `each'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `start'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:23:in `start'' > C:/Applns/Ruby187/lib/ruby/1.8/webrick/server.rb:82:in `start'' > C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/rails-2.2.3/lib/ > webrick_server.rb:60:in `dispatch'' > C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/rails-2.2.3/lib/ > commands/servers/webrick.rb:66 > C:/Applns/Ruby187/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `gem_original_require'' > C:/Applns/Ruby187/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `require'' > C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.2.3/ > lib/active_support/dependencies.rb:153:in > `require'' > C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.2.3/ > lib/active_support/dependencies.rb:521:in > `new_constants_in'' > C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.2.3/ > lib/active_support/dependencies.rb:153:in > `require'' > C:/Applns/Ruby187/lib/ruby/gems/1.8/gems/rails-2.2.3/lib/ > commands/server.rb:49 > C:/Applns/Ruby187/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `gem_original_require'' > C:/Applns/Ruby187/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31:in `require'' > script/server:3 > 127.0.0.1 - - [21/Jul/2010:11:35:18 India Standard Time] "GET / HTTP/ > 1.1" 500 338 > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Thanks: Rajeev sharma -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
kannav rajeev
2010-Jul-21 07:21 UTC
Re: Please help --> Getting error ERROR NoMethodError: private method `gsub!'' called for #<Class:0x47a8e38>
sorry i don''t think these lines given below are help full to find out error run "ruby script/server -t" Goto Yours development log file copy all the text and paste all text of that file here -- Thanks: Rajeev sharma -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
<sony.thomas4-uxC5H9eHYlcAvxtiuMwx3w@public.gmane.org>
2010-Jul-21 07:24 UTC
RE: Please help --> Getting error ERROR NoMethodError: private method `gsub!'' called for #<Class:0x47a8e38>
I got invalid option for "-t" Please check below ruby script/server -t => Booting WEBrick... server: invalid option: -t => Rails 2.2.3 application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2010-07-21 12:43:28] INFO WEBrick 1.3.1 [2010-07-21 12:43:28] INFO ruby 1.8.7 (2010-01-10) [i386-mingw32] [2010-07-21 12:43:28] INFO WEBrick::HTTPServer#start: pid=2720 port=3000 -----Original Message----- From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of kannav rajeev Sent: Wednesday, July 21, 2010 12:51 PM To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: Re: [Rails] Please help --> Getting error ERROR NoMethodError: private method `gsub!'' called for #<Class:0x47a8e38> sorry i don''t think these lines given below are help full to find out error run "ruby script/server -t" Goto Yours development log file copy all the text and paste all text of that file here -- Thanks: Rajeev sharma -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
<sony.thomas4-uxC5H9eHYlcAvxtiuMwx3w@public.gmane.org>
2010-Jul-21 07:31 UTC
RE: Please help --> Getting error ERROR NoMethodError: private method `gsub!'' called for #<Class:0x47a8e38>
One more point like I have tried to configure my DB in database.yml. It was development: adapter: sqlite3 database: db/development.sqlite3 pool: 5 timeout: 5000 I changed to development: adapter: mysql database: library_development username: root password: ***** host: localhost pool: 5 timeout: 5000 Any problem with this ? -----Original Message----- From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of kannav rajeev Sent: Wednesday, July 21, 2010 12:51 PM To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: Re: [Rails] Please help --> Getting error ERROR NoMethodError: private method `gsub!'' called for #<Class:0x47a8e38> sorry i don''t think these lines given below are help full to find out error run "ruby script/server -t" Goto Yours development log file copy all the text and paste all text of that file here -- Thanks: Rajeev sharma -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
kannav rajeev
2010-Jul-21 07:34 UTC
Re: Please help --> Getting error ERROR NoMethodError: private method `gsub!'' called for #<Class:0x47a8e38>
its yours first application on rails ? On Wed, Jul 21, 2010 at 1:01 PM, <sony.thomas4-uxC5H9eHYlcAvxtiuMwx3w@public.gmane.org> wrote:> One more point like I have tried to configure my DB in database.yml. > > It was > > development: > adapter: sqlite3 > database: db/development.sqlite3 > pool: 5 > timeout: 5000 > > I changed to > > development: > adapter: mysql > database: library_development > username: root > password: ***** > host: localhost > pool: 5 > timeout: 5000 > > Any problem with this ? > > -----Original Message----- > From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of kannav rajeev > Sent: Wednesday, July 21, 2010 12:51 PM > To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Subject: Re: [Rails] Please help --> Getting error ERROR NoMethodError: > private method `gsub!'' called for #<Class:0x47a8e38> > > sorry i don''t think these lines given below are help full to find out > error > run "ruby script/server -t" > Goto Yours development log file copy all the text and paste all text > of that file here > > > -- > Thanks: > Rajeev sharma > > -- > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Thanks: Rajeev sharma -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
<sony.thomas4-uxC5H9eHYlcAvxtiuMwx3w@public.gmane.org>
2010-Jul-21 08:57 UTC
RE: Please help --> Getting error ERROR NoMethodError: private method `gsub!'' called for #<Class:0x47a8e38>
S :-) -----Original Message----- From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-talk@googlegroups.com] On Behalf Of kannav rajeev Sent: Wednesday, July 21, 2010 1:05 PM To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: Re: [Rails] Please help --> Getting error ERROR NoMethodError: private method `gsub!'' called for #<Class:0x47a8e38> its yours first application on rails ? On Wed, Jul 21, 2010 at 1:01 PM, <sony.thomas4-uxC5H9eHYlcAvxtiuMwx3w@public.gmane.org> wrote:> One more point like I have tried to configure my DB in database.yml. > > It was > > development: > adapter: sqlite3 > database: db/development.sqlite3 > pool: 5 > timeout: 5000 > > I changed to > > development: > adapter: mysql > database: library_development > username: root > password: ***** > host: localhost > pool: 5 > timeout: 5000 > > Any problem with this ? > > -----Original Message----- > From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of kannav rajeev > Sent: Wednesday, July 21, 2010 12:51 PM > To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Subject: Re: [Rails] Please help --> Getting error ERROR NoMethodError: > private method `gsub!'' called for #<Class:0x47a8e38> > > sorry i don''t think these lines given below are help full to find out > error > run "ruby script/server -t" > Goto Yours development log file copy all the text and paste all text > of that file here > > > -- > Thanks: > Rajeev sharma > > -- > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Thanks: Rajeev sharma -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
kannav rajeev
2010-Jul-22 05:06 UTC
Re: Please help --> Getting error ERROR NoMethodError: private method `gsub!'' called for #<Class:0x47a8e38>
use instant rails if possible go back on ruby on rails installation again On Wed, Jul 21, 2010 at 2:27 PM, <sony.thomas4-uxC5H9eHYlcAvxtiuMwx3w@public.gmane.org> wrote:> S > > > :-) > > > -----Original Message----- > From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-talk@googlegroups.com] On Behalf Of kannav rajeev > Sent: Wednesday, July 21, 2010 1:05 PM > To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Subject: Re: [Rails] Please help --> Getting error ERROR NoMethodError: private method `gsub!'' called for #<Class:0x47a8e38> > > its yours first application on rails ? > > On Wed, Jul 21, 2010 at 1:01 PM, <sony.thomas4-uxC5H9eHYlcAvxtiuMwx3w@public.gmane.org> wrote: >> One more point like I have tried to configure my DB in database.yml. >> >> It was >> >> development: >> adapter: sqlite3 >> database: db/development.sqlite3 >> pool: 5 >> timeout: 5000 >> >> I changed to >> >> development: >> adapter: mysql >> database: library_development >> username: root >> password: ***** >> host: localhost >> pool: 5 >> timeout: 5000 >> >> Any problem with this ? >> >> -----Original Message----- >> From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >> [mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of kannav rajeev >> Sent: Wednesday, July 21, 2010 12:51 PM >> To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >> Subject: Re: [Rails] Please help --> Getting error ERROR NoMethodError: >> private method `gsub!'' called for #<Class:0x47a8e38> >> >> sorry i don''t think these lines given below are help full to find out >> error >> run "ruby script/server -t" >> Goto Yours development log file copy all the text and paste all text >> of that file here >> >> >> -- >> Thanks: >> Rajeev sharma >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> -- >> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> > > > > -- > Thanks: > Rajeev sharma > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Thanks: Rajeev sharma -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Amir Z.
2012-Apr-25 07:13 UTC
Re: Please help --> Getting error ERROR NoMethodError: private method `gsub!'' called for #<Class:0x4
I am working with railspace social networking application. I did login logout registration process in it but as i am introducing the concept for remember me then stuck in the problem. it is showing the following error. private method `gsub'' called for 4:Fixnum C:/Users/Amir/Downloads/IR/ruby/lib/ruby/1.8/cgi.rb:342:in `escape'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_ext/cookie.rb:73:in `to_s'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_ext/cookie.rb:73:in `collect'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_ext/cookie.rb:73:in `to_s'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cookies.rb:80:in `set_cookie'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cookies.rb:65:in `[]='' app/controllers/user_controller.rb:27:in `login'' Please help me out. Any help is appreciated Thanks Amir -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2012-Apr-25 07:26 UTC
Re: Re: Please help --> Getting error ERROR NoMethodError: private method `gsub!'' called for #<Class:0x4
On 25 April 2012 08:13, Amir Z. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I am working with railspace social networking application. I did login > logout registration process in it but as i am introducing the concept > for remember me then stuck in the problem. it is showing the following > error. > > private method `gsub'' called for 4:Fixnum > > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/1.8/cgi.rb:342:in `escape'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_ext/cookie.rb:73:in > `to_s'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_ext/cookie.rb:73:in > `collect'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_ext/cookie.rb:73:in > `to_s'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cookies.rb:80:in > `set_cookie'' > C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cookies.rb:65:in > `[]='' > app/controllers/user_controller.rb:27:in `login''It is telling you the line that the problem is (line 27 in user_controller.rb, which is a bit odd, I would have expected it to be called users_controller.rb not user_controller.rb), and the error tells you that you are calling gsub, but the object you are calling it on is a number instead of a valid object that understands the method gsub. Have a look at that line. Then if you cannot see the problem have a look at the Rails Guide on debugging for suggestions on how to debug your code. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Amir Z.
2012-Apr-25 07:53 UTC
Re: Please help --> Getting error ERROR NoMethodError: private method `gsub!'' called for #<Class:0x4
Thanks Colin we are calling it as an object. Please find my login code below. def login if request.get? @user = User.new(:remember_me => cookies[:remember_me] || "0") elsif param_posted?(:user) @user = User.new(params[:user]) user = User.find_by_screen_name_and_password(@user.screen_name, @user.password) if user user.login!(session) if @user.remember_me == "1" cookies[:remember_me] = { :value => "1", :expires => 10.years.from_now } user.authorization_token = user.id user.save! cookies[:authorization_token] = { (line no. 27) :value => user.authorization_token, (line no. 28) :expires => 10.years.from_now } (line no. 29) else cookies.delete(:remember_me) cookies.delete(:authorization_token) end flash[:notice] = "User #{user.screen_name} logged in!" redirect_to_forwarding_url else @user.clear_password! flash[:notice] = "Invalid screen name/password combination" end end end -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2012-Apr-25 07:57 UTC
Re: Re: Please help --> Getting error ERROR NoMethodError: private method `gsub!'' called for #<Class:0x4
On 25 April 2012 08:53, Amir Z. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Thanks Colin > we are calling it as an object. Please find my login code below.Which is the line generating the error? Colin> > def login > if request.get? > @user = User.new(:remember_me => cookies[:remember_me] || "0") > elsif param_posted?(:user) > @user = User.new(params[:user]) > user = User.find_by_screen_name_and_password(@user.screen_name, > @user.password) > if user > user.login!(session) > if @user.remember_me == "1" > cookies[:remember_me] = { :value => "1", > :expires => 10.years.from_now } > user.authorization_token = user.id > user.save! > cookies[:authorization_token] = { (line no. 27) > :value => user.authorization_token, (line no. 28) > :expires => 10.years.from_now } (line no. 29) > else > cookies.delete(:remember_me) > cookies.delete(:authorization_token) > end > flash[:notice] = "User #{user.screen_name} logged in!" > redirect_to_forwarding_url > else > @user.clear_password! > flash[:notice] = "Invalid screen name/password combination" > end > end > end > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Amir Z.
2012-Apr-25 10:19 UTC
Re: Please help --> Getting error ERROR NoMethodError: private method `gsub!'' called for #<Class:0x4
Error showing in line no. 27 Please find below the error trace C:/Users/Amir/Downloads/IR/ruby/lib/ruby/1.8/cgi.rb:342:in `escape'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_ext/cookie.rb:73:in `to_s'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_ext/cookie.rb:73:in `collect'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_ext/cookie.rb:73:in `to_s'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cookies.rb:80:in `set_cookie'' C:/Users/Amir/Downloads/IR/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cookies.rb:65:in `[]='' app/controllers/user_controller.rb:27:in `login'' -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Matt Jones
2012-Apr-26 12:24 UTC
Re: Please help --> Getting error ERROR NoMethodError: private method `gsub!'' called for #<Class:0x4
On Wednesday, 25 April 2012 03:53:59 UTC-4, Ruby-Forum.com User wrote:> > Thanks Colin > we are calling it as an object. Please find my login code below. > > def login > if request.get? > @user = User.new(:remember_me => cookies[:remember_me] || "0") > elsif param_posted?(:user) > @user = User.new(params[:user]) > user = User.find_by_screen_name_and_password(@user.screen_name, > @user.password) > if user > user.login!(session) > if @user.remember_me == "1" > cookies[:remember_me] = { :value => "1", > :expires => 10.years.from_now } > user.authorization_token = user.id >This is where things go wrong - user.id is not a string.> user.save! > cookies[:authorization_token] = { (line no. 27) > :value => user.authorization_token, (line no. 28) >The cookie value here *must* be a string - passing in a Fixnum is what''s causing the error. The original RailsSpace code sets the token to a hashed string, not the user''s id. Regarding RailsSpace: that book is wildly out-of-date (I note that you''re using Rails 2.0.2 from the traces above) and does some things that were extremely questionable even for that time period. For instance, storing passwords in cleartext in the DB is strongly discouraged - it''s led to *massive* security breaches over the years on other web applications. Here''s an updated tutorial from the RailsSpace authors, so you''re not learning the 2007 version of the framework: http://ruby.railstutorial.org/?railsspace=1 --Matt Jones -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/2m0e7TsQvuIJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.