Forum: Ruby on Rails Frozen string error in activerecord

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Christopher G. (Guest)
on 2007-04-12 18:28
Hi everyone -

Hope this is an easy catch - I'm using Ruby 1.8.6 on WinXP, rails 1.1.6,
in a large existing application

I use InstantRails 1.7 (I stripped rails and gems back to older revs,
like the rest of my team) which includes mySQL 5.0.27

I get this error when trying to access the front web page in my browser
- mongrel doesn't complain

Think it could be with the way Dates are treated either in the Windows
version of Ruby or the Windows version of mySQL?

This is the application trace - thank you so much...


can't modify frozen string

RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace

c:/zaadz/InstantRails/ruby/lib/ruby/1.8/date/format.rb:105:in `chomp!'
c:/zaadz/InstantRails/ruby/lib/ruby/1.8/date/format.rb:105:in
`method_missing'
c:/zaadz/InstantRails/ruby/lib/ruby/1.8/date/format.rb:963:in `_parse'
c:/zaadz/InstantRails/ruby/lib/ruby/1.8/parsedate.rb:47:in `parsedate'
c:/zaadz/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/schema_definitions.rb:111:in
`string_to_time'
c:/zaadz/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/schema_definitions.rb:58:in
`type_cast'
c:/zaadz/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/schema_definitions.rb:20:in
`initialize'
c:/zaadz/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/mysql_adapter.rb:292:in
`new'
c:/zaadz/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/mysql_adapter.rb:292:in
`columns'
c:/zaadz/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/mysql_adapter.rb:292:in
`each'
c:/zaadz/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/mysql_adapter.rb:292:in
`columns'
c:/zaadz/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:696:in
`columns'
c:/zaadz/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:709:in
`column_names'
(__DELEGATION__):2:in `__send__'
(__DELEGATION__):2:in `column_names'
#{RAILS_ROOT}/app/models/site.rb:27:in `find_by_domain'
#{RAILS_ROOT}/app/models/global.rb:13:in `initialize'
#{RAILS_ROOT}/app/controllers/application.rb:30:in `new'
#{RAILS_ROOT}/app/controllers/application.rb:30:in `set_globals'
This topic is locked and can not be replied to.