rest - Grouping Restful Routes in Rails -
rest - Grouping Restful Routes in Rails -
simply put, there way can grouping restful routes avoid repetition? app expands find myself listing routes follows:
resources :users resources :articles resources :categories ...
what i'd grouping these resources on 1 line. ideas?
why not seperate them using comma this:
resources :users, :articles, :categories
ruby-on-rails rest routes
Comments
Post a Comment