Setting up restful routes as a total newb

Posted by Trip on Stack Overflow See other posts from Stack Overflow or by Trip
Published on 2010-06-03T16:39:38Z Indexed on 2010/06/03 16:44 UTC
Read the original article Hit count: 206

Filed under:

I'm getting the following error:

Unknown action

No action responded to show. Actions: activate, destroy, index, org_deals, search, and suspend

Controller:

class Admin::HomepagesController < Admin::ApplicationController

def org_deals
@organization = Organization.find(:all)
end

Routes:

admin.resources :organizations, :collection => {:search => :get}, :member => {:suspend => :get, :activate => :get}

To note: This is a controller inside of a controller.

Any ideas why this is?

© Stack Overflow or respective owner

Related posts about ruby-on-rails