Hi,
I’m using Rails 1.2.3 (constraint of the hosting company). I’m
getting this error
Unknown action
No action responded to subscriber
upon visiting http://mydomain.com/super_admin/subscriber/search
I have these files:
app/controllers/super_admin_controller.rb
app/controllers/super_admin/subscriber_controller.rb
app/views/super_admin/subscriber/search.rhtml
and below is my routes.rb file. I had to comment out the
“map.namespace :super_admin do |adm|” because when I included it, I
got an ‘Application error Rails application failed to start properly"’
error.
As always, your help is greatly appreciated, - Dave
================Begin config/routes.rb=======================
ActionController::Routing::Routes.draw do |map|
map.connect ‘’, :controller => “register”, :action => “start”
map.resources :users
map.login ‘/login’, :controller => ‘user’, :action => ‘login’
map.logout ‘/logout’, :controller => ‘user’, :action => ‘logout’
map.change_password ‘/change_password’, :controller =>
‘user’, :action => ‘change_password’
#map.namespace :super_admin do |adm|
adm.resources :subscriber, :collection => { :search
=> :get, :searchresults => :get }
#end
The priority is based upon order of creation: first created →
highest priority.
Sample of regular route:
map.connect ‘products/:id’, :controller => ‘catalog’, :action =>
‘view’
Keep in mind you can assign values other than :controller
and :action
Sample of named route:
map.purchase ‘products/:id/purchase’, :controller =>
‘catalog’, :action => ‘purchase’
This route can be invoked with purchase_url(:id => product.id)
You can have the root of your site routed by hooking up ‘’
– just remember to delete public/index.html.
map.connect ‘’, :controller => “welcome”
Allow downloading Web Service WSDL as a file with an extension
instead of a file named ‘wsdl’
map.connect ‘:controller/service.wsdl’, :action => ‘wsdl’
Install the default route as the lowest priority.
map.connect ‘:controller/:action/:id.:format’
map.connect ‘:controller/:action/:id’
end
=========================end config/
routes.rb============================