Re: [Rails] routing error in partial when rendered from another controller

2012-03-19 Thread Colin Law
On 19 March 2012 16:12, Erwin wrote: > in my routes.rb  I have  a route > > resources :projects  do >  member do >     put "change_photo" >  end > end > >  checked with rake routes CONTROLLER=projects >>>   change_photo_project PUT   /projects/:id/change_photo(.:format)         >>> projects#chang

[Rails] routing error in partial when rendered from another controller

2012-03-19 Thread Erwin
in my routes.rb I have a route resources :projects do member do put "change_photo" end end checked with rake routes CONTROLLER=projects >> change_photo_project PUT /projects/:id/change_photo(.:format) >> projects#change_photo from my projects#show I render a partial w