I am quite new to Rails3, I basically created a subscribers
scaffolding, I only want my app to respond to new
and create
actions.
You could do
resources :subscribers, :path => ''
and make sure that GET /
is being served by your root template, e.g. by adding this to SubscribersController:
def index
render 'welcome/index'
end
I experimented with using a match "/"
declaration to override the resource index action and map it to another controller instead but apparently a resources
declaration is always fully overriding manually declared routes.