> --
> 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 rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
Thanks:
Rajeev sharma
--
Thanks:
Rajeev sharma
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: rubyonra...@googlegroups.com
[mailto:rubyonra...@googlegroups.com] On Behalf Of kannav rajeev
Sent: Wednesday, July 21, 2010 12:51 PM
To: rubyonra...@googlegroups.com
Subject: Re: [Rails] Please help --> Getting error ERROR NoMethodError:
private method `gsub!' called for #<Class:0x47a8e38>
--
Thanks:
Rajeev sharma
--
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: rubyonra...@googlegroups.com
[mailto:rubyonra...@googlegroups.com] On Behalf Of kannav rajeev
Sent: Wednesday, July 21, 2010 12:51 PM
To: rubyonra...@googlegroups.com
Subject: Re: [Rails] Please help --> Getting error ERROR NoMethodError:
private method `gsub!' called for #<Class:0x47a8e38>
--
Thanks:
Rajeev sharma
--
--
Thanks:
Rajeev sharma
:-)
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/.
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)