Forum: Ruby on Rails Error with Rails 1.1RC1 and Properties page

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.
John T. (Guest)
on 2006-03-23 07:09
(Received via mailing list)
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:in
`escapeHTML'
/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:in
`each'
/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:in
`returning'
/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:in
`properties'
/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:in
`perform_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:in
`perform_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:in
`perform_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:in
`send'
/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:in
`process_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:in
`dispatch'
/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:in
`service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:144:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:94:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:89:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:89:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:79:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:79:in `start'
/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:in `require__'
/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:in
`require'
/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:in `require'
/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!
John T. (Guest)
on 2006-03-23 07:23
(Received via mailing list)
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
John T. (Guest)
on 2006-03-26 20:28
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
David T. (Guest)
on 2006-03-26 21:00
(Received via mailing list)
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
John T. (Guest)
on 2006-03-27 02:30
(Received via mailing list)
Cool, thanks! Good catch with the connection with the schema_info table.

Didn't even know about script/about!

jt
This topic is locked and can not be replied to.