writing resources in routes files

sandeep45 Posted by sandeep45 on January 10, 2012

Below is how I have been writing resources which only have custom actions.

resources person, :only => [] do
 method do
  get 'show_wealth'
  get 'show_debit'
 end
end
Is this a good practice?

Answers

Fork me on GitHub