Error with Rails 1.1RC1 and Properties page


#1

I just tried setting up a simple Rails app, after updating to the
1.1RC1 version of Rails. Generating a simple scaffold worked fine, and
WEBrick started fine with script/server.

I then went to the http://localhost:3000 page and clicked on the
“About your application’s environment” link, and an error was
displayed:

NoMethodError in Rails/info#properties

private method `gsub’ called for 1:Fixnum
RAILS_ROOT: script/…/config/…

/usr/lib/ruby/1.8/cgi.rb:362:in escapeHTML_fail_on_nil' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2.4008/lib/action_controller/cgi_ext/cgi_ext.rb:13:inescapeHTML’
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0.4008/builtin/rails_info/rails/info.rb:55:in
to_html' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0.4008/builtin/rails_info/rails/info.rb:53:ineach’
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0.4008/builtin/rails_info/rails/info.rb:53:in
to_html' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0.4008/builtin/rails_info/rails/info.rb:52:inreturning’
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0.4008/builtin/rails_info/rails/info.rb:52:in
to_html' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0.4008/builtin/rails_info/rails/info_controller.rb:5:inproperties’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2.4008/lib/action_controller/base.rb:908:in
send' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2.4008/lib/action_controller/base.rb:908:inperform_action_without_filters’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2.4008/lib/action_controller/filters.rb:355:in
perform_action_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2.4008/lib/action_controller/benchmarking.rb:69:inperform_action_without_rescue’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2.4008/lib/action_controller/benchmarking.rb:69:in
measure' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2.4008/lib/action_controller/benchmarking.rb:69:inperform_action_without_rescue’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2.4008/lib/action_controller/rescue.rb:82:in
perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2.4008/lib/action_controller/base.rb:378:insend’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2.4008/lib/action_controller/base.rb:378:in
process_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2.4008/lib/action_controller/filters.rb:364:inprocess_without_session_management_support’
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2.4008/lib/action_controller/session_management.rb:117:in
process' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0.4008/lib/dispatcher.rb:38:indispatch’
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0.4008/lib/webrick_server.rb:115:in
handle_dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0.4008/lib/webrick_server.rb:81:inservice’
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:inrun’
/usr/lib/ruby/1.8/webrick/server.rb:155:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:144:instart’
/usr/lib/ruby/1.8/webrick/server.rb:144:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:94:instart’
/usr/lib/ruby/1.8/webrick/server.rb:89:in each' /usr/lib/ruby/1.8/webrick/server.rb:89:instart’
/usr/lib/ruby/1.8/webrick/server.rb:79:in start' /usr/lib/ruby/1.8/webrick/server.rb:79:instart’
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0.4008/lib/webrick_server.rb:67:in
dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0.4008/lib/commands/servers/webrick.rb:59 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:inrequire__’
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in require' /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5.4008/lib/active_support/dependencies.rb:149:inrequire’
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0.4008/lib/commands/server.rb:34
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in require__' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:inrequire’
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5.4008/lib/active_support/dependencies.rb:149:in
`require’
script/server:3

I’m not sure where to look to track this down.

Any suggestions?

Thanks!


#2

Some more info…

With a new, empty rails (1.1rc1) project, clicking the properties link
works fine. Just my test app with the default scaffold code. (I’m
using a sqlite db, on OS X, btw)

jt


#3

I see this too, and filed a ticket:
http://dev.rubyonrails.org/ticket/4370

It doesn’t affect anything else, however, and script/about works fine.

Best,
David


#4

John T. wrote:

I just tried setting up a simple Rails app, after updating to the
1.1RC1 version of Rails. Generating a simple scaffold worked fine, and
WEBrick started fine with script/server.

I then went to the http://localhost:3000 page and clicked on the
“About your application’s environment” link, and an error was
displayed:

NoMethodError in Rails/info#properties

private method `gsub’ called for 1:Fixnum
RAILS_ROOT: script/…/config/…

Uhhh… anyone have an idea? I’d like to make sure something in my Rails
install isn’t broken.

Thanks

john


#5

Cool, thanks! Good catch with the connection with the schema_info table.

Didn’t even know about script/about!

jt