我在用户控制器中收到了这些操作
@H_301_2@class UsersController < ApplicationController
def index #default action
...
end
def new #default action
...
end
def another_new
...
end
def create
...
end
def another_create
...
end
end
我想要能够
/ users / another_new并从某种链接调用:method => :another_create
make / users / another_new
我得到以下config / routes.rb
@H_301_2@get '/users/another_new' :to => 'users#another_new' resources :users