Defect #6
closedinfo.rhtml uninitialized constant
0%
Description
Maybe you already know this one? When I click on Administration information (/admin/info)...
ActionView::TemplateError (uninitialized constant Rails::Info) on line #7 of app/views/admin/info.rhtml:
4:
5: <%=l(:label_environment)%>:
6: <ul>
7: <% Rails::Info.properties.each do |name, value| >
8: <li><= name >: <= value ></li>
9: < end %>
10: </ul>
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:264:in `load_missing_constant'
/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:453:in `const_missing'
#{RAILS_ROOT}/app/views/admin/info.rhtml:7:in `_run_rhtml_47app47views47admin47info46rhtml'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_view/base.rb:326:in `compile_and_render_template'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_view/base.rb:301:in `render_template'
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_view/base.rb:260:in `render_file'
I using the latest from Trunk and Rails 1.2
Updated by Jean-Philippe Lang almost 18 years ago
Yes, with rails 1.2 it only works in development environment.
So I removed these informations.