Welcome Guest | Login

Error log shows Radiant login system even though I'm not using Radiant

Have been following the instructions at http://www.hostingrails.com/forums/wiki_thread/1 to install my application. Trying to access the application results in the following error; reflected in production.log:

Processing ViewResultsController#index (for ############## at 2007-11-03 21:09:08) [GET]
 Session ID: daced1d78e72140126e6fbea71b4d6b7
 Parameters: {"action"=>"index", "controller"=>"view_results"}


NameError (undefined local variable or method `login_url' for #<ViewResultsController:0xb764af0c>):
   /usr/local/lib/ruby/gems/1.8/gems/radiant-0.6.2/lib/login_system.rb:26:in `authenticate'
   /vendor/rails/actionpack/lib/action_controller/filters.rb:456:in `send'
   /vendor/rails/actionpack/lib/action_controller/filters.rb:456:in `call'
   /vendor/rails/actionpack/lib/action_controller/filters.rb:435:in `call'
   /vendor/rails/actionpack/lib/action_controller/filters.rb:637:in `call_filter'
   /vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `call_filter'
   /vendor/rails/actionpack/lib/action_controller/filters.rb:438:in `call'
   /vendor/rails/actionpack/lib/action_controller/filters.rb:637:in `call_filter'
   /vendor/rails/actionpack/lib/action_controller/filters.rb:638:in `call_filter'
   /vendor/rails/actionpack/lib/action_controller/filters.rb:438:in `call'
   /vendor/rails/actionpack/lib/action_controller/filters.rb:637:in `call_filter'
   /vendor/rails/actionpack/lib/action_controller/filters.rb:619:in `perform_action_without_benchmark'
   /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
   /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
   /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
   /vendor/rails/actionpack/lib/action_controller/rescue.rb:83:in `perform_action'
   /vendor/rails/actionpack/lib/action_controller/base.rb:430:in `send'
   /vendor/rails/actionpack/lib/action_controller/base.rb:430:in `process_without_filters'
   /vendor/rails/actionpack/lib/action_controller/filters.rb:624:in `process_without_session_management_support'
   /vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in `process'
   /vendor/rails/actionpack/lib/action_controller/base.rb:330:in `process'
   /vendor/rails/railties/lib/dispatcher.rb:41: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
I'm puzzled by this error because I'm not at all using Radiant. Why is my application accessing Radiant? What do I have to do to fix this error? Any help would be greatly appreciated. And yes, I'm a newby and it is likely that there is a trivial solution...

2007-11-03 09:56 PM

So you are trying to browse to /view_results/index and are getting this error?  Can you paste in the contents of your view_results controller between
def index
 ...
end
Why would it trying to be accessing the variable or method login_url?  Do you have radiant running elsewhere in your account?  

2007-11-04 04:11 AM

I'm accessing / http://www.some-random-domain-name.com/) with

map.connect '', :controller => "view_results"
in routes.rb. The definition of index is as follows:

def index
 @colleges = College.find(:all)
end
The associated view basically uses the data in @colleges to create a drop-down list - that's all. I'm using the plugins active_scaffold and active_scaffold_acts_as_list. I'm not at all using Radiant - I have it not even installed on my local machine. The account with hostingrails has been set up a couple of days ago and all I did was following the tutorial and get my app in.
Just to make sure that I got the installation of the plugins correctly; I can scp them from my local machine to the appropriate directory on the server - or do I have to do anything else.

No idea why it is accessing login_url.

2007-11-04 08:40 AM

That is strange - you should

1) don't scp them - try script/plugin install or freeze the gem instead
2) Contact support and have them take a look at your setup.  

2007-11-04 01:48 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.