ruby on rails - make a custom url for create action with RESTful routing -


in rails 4 i'm trying make custom root particular action in users controller, want restful resources users still are, change url create action , make example /account/register. i'm trying follow seem not work :

resources :users, except: [:create] # first eliminate creation of create root resources :users, path: "account/register", as: :users, only: [:create] # try make custom route create action 

i want still using users_path , not change of routing helper in view, please idea ?

try:

match '/account/register' => 'user#create', via: :post 

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -