How to add additional routes to restful rails controllers
In your controller file
def test_email ...#content here end
In your routes.rb file
map.resources :flowers, :collection => { :test_email => :get}
codes a lot
If the code is inexplicably missing from some of my posts it is because gist.github.com is down at the moment. Check back a little later.
In your controller file
def test_email ...#content here end
In your routes.rb file
map.resources :flowers, :collection => { :test_email => :get}