Reputation:
Let's say all I need for now is just a GET REST service that returns the JSON when I go to this address:
http://localhost:3000/population_management/1.json
One way is to define it this way:
resources :population_management, :only => [:show]
And one way is to define it this way:
resources :population_management
match "population_management/:id" => "population_management#show", :via => :get
And I am sure there are other ways too, So what is your recommendation and why?
Upvotes: 0
Views: 34