Re: Renaming RESTful actions

François Beausoleil
Fri, 16 Mar 2007 19:02:25 -0000

Hi,

2007/3/16, Jason Roelofs <jameskilton@gmail.com>:
> A little more information, here's my test (which is failing, difference
> being :action => 'create' is generated, not 'upload'):
>
>      assert_recognizes({:controller => 'taxes', :action =>
'upload'}, {:path
> => 'taxes', :method => :post})
>
>  and current routing
>
>    map.resources :taxes, :new => {:upload => :post}

map.connect "/taxes/upload", :controller => "taxes",
:action => "upload"

Everything that existed before resources still exists now that
resources are here.  That's one of the nice thing.  We get to make our
cake and eat it too :)

Bye !
--
François Beausoleil
http://blog.teksol.info/
http://piston.rubyforge.org/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com