Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails resources

resources :controller_name # => new create edit update index show destroy

resources :controller_name, only: [:index, :new, :create, :edit, :update]
# <=>
resources :controller_name, except: [:destroy, :show]
Source by guides.rubyonrails.org #
 
PREVIOUS NEXT
Tagged: #rails #resources
ADD COMMENT
Topic
Name
8+4 =