के लिए नया एक्शन जोड़ें मुझे मिल उपयोगकर्ताओं नियंत्रक में इन कार्योंमार्ग
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
मैं लिंक :method => :another_create
किसी प्रकार से फोन /users/another_new
बनाने के लिए निम्नलिखित मुझे मिल गया /users/another_new
करने में सक्षम हो सकता है और करना चाहते हैं config/routes.rb
get '/users/another_new' :to => 'users#another_new'
resources :users
मेरा प्रश्न यह है कि 012 जोड़ने का यह सही तरीका हैऔर मैं एक और_क्रेट विधि कैसे जोड़ूं।
दोस्त आप एक lifesaver हैं! –