mam te działania kontrolera użytkownikówDodaj nową akcję na trasie
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
Chcę móc /users/another_new
i dzwonić z jakiegoś linku :method => :another_create
aby /users/another_new
mam następujące config/routes.rb
get '/users/another_new' :to => 'users#another_new'
resources :users
moje pytanie brzmi, czy to jest poprawny sposób na dodanie get
oraz sposób dodawania metody else_create.
Koleś jesteś ratownikiem! –