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

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -