Frozen string error in activerecord


#1

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:inmethod_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:inparsedate’
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:intype_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:innew’
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:ineach’
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:incolumns’
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:insend
(DELEGATION):2:in column_names' #{RAILS_ROOT}/app/models/site.rb:27:infind_by_domain’
#{RAILS_ROOT}/app/models/global.rb:13:in initialize' #{RAILS_ROOT}/app/controllers/application.rb:30:innew’
#{RAILS_ROOT}/app/controllers/application.rb:30:in `set_globals’