Rails trasy domyślne JSON

defaults format: :json do
  resources :photos
  get :search, to: 'articles_controller#search', as: 'article_search'
end
Comfortable Constrictor