Skip to content

Instantly share code, notes, and snippets.

@Circuit8
Created July 1, 2016 12:17
Show Gist options
  • Select an option

  • Save Circuit8/649c6668f40e8d2b15e74b69a87e924f to your computer and use it in GitHub Desktop.

Select an option

Save Circuit8/649c6668f40e8d2b15e74b69a87e924f to your computer and use it in GitHub Desktop.

Revisions

  1. Circuit8 revised this gist Jul 1, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions rake routes
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    api GET /api/products/:id/fabrics(.:format) api/fabrics#index {:format=>:json}
  2. Circuit8 created this gist Jul 1, 2016.
    3 changes: 3 additions & 0 deletions routes.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    namespace :api do
    get 'products/:custom_id/fabrics', to: 'fabrics#index', defaults: { format: :json }
    end