A little ruby array with symbols trick In a Ruby on Rails application, when I would set up my routes I would always write: resources :trip_gears, only: :create #if more than one CRUD method: resources :trip_gears, only: [:create, :index] I just found out that you can do this differently, syntactically, by using %i if creating an array of symbols. It looks like this: resources :trips, only: %i[index create]