I moved my bits from my dev box; mac os x 10.4.9, ruby 1.8.5,
radiant(mental branch) r303 running on mongrel to my host
railsplayground.
On railsplayground, the server is running fcgi, but radiant is up and
working. It is serving my pages just fine. However, my trouble
starts with my custom extension that I wrote. Again, it works
perfectly fine on my dev box, but on the hosting site it throws this
error when I try to access it from the admin portion of radiant:
Processing ApplicationController#index (for 70.190.32.209 at
2007-02-05 15:00:20) [GET]
Session ID: 19c91a04a06891d8c0f825b6663d062f
Parameters: {“action”=>“index”, “controller”=>“admin/lectures”}
NameError (uninitialized constant Admin::LecturesController):
/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:267:in
load_missing_constant' /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:453:in
const_missing’
/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/inflector.rb:251:in
constantize' /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/string/inflections.rb:148:in
constantize’
/vendor/rails/actionpack/lib/action_controller/routing.rb:1258:in
recognize' /vendor/rails/railties/lib/dispatcher.rb:40:in
dispatch’
/vendor/rails/railties/lib/fcgi_handler.rb:168:in process_request' /vendor/rails/railties/lib/fcgi_handler.rb:143:in
process_each_request!’
/vendor/rails/railties/lib/fcgi_handler.rb:109:in
with_signal_handler' /vendor/rails/railties/lib/fcgi_handler.rb:142:in
process_each_request!’
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:612:in
each_cgi' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in
each’
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in
each_cgi' /vendor/rails/railties/lib/fcgi_handler.rb:141:in
process_each_request!’
/vendor/rails/railties/lib/fcgi_handler.rb:55:in process!' /vendor/rails/railties/lib/fcgi_handler.rb:25:in
process!’
dispatch.fcgi:24
My extension configuration is
define_routes do |map|
map.connect ‘admin/education/:action’, :controller =>
‘admin/lectures’
end
def activate
admin.tabs.add “Education”, “/admin/education”, :after =>
“Layouts”, :visibility => [:all]
Page.send :include, LecturesTag
NoCachePage
end
The funny thing is that on the first request (after the fcgi process
is restarted) works, but the second request gets this error.
I have double-checked all configuration issues with railsplayground
and verified that it works locally on my dev machine. Anyone have any
hints as to what is going on?
I have even compared file by file between local and hosted and nothing
is different except the difference needed by fcgi on railsplayground.
Any help would be appreciated.
Jason