Displaying 1 result from an estimated 1 matches for "algorithmscontroller".
Did you mean:
algorithms_controller
2007 Dec 03
4
Resource routing methods -- what am I missing?
...me out?
-- routes.rb:
# ...
map.resources :algorithms, :collection => { :search => :post } do
|algorithm|
algorithm.resources :snippets
end
# ...
-- snippets_controller.rb
class SnippetsController < ApplicationController
def show
# ...
end
end
-- algorithms_controller.rb
class AlgorithmsController < ApplicationController
# ...
redirect_to algorithm_snippet_url(@algorithm, @snippet) # <- no such
method
redirect_to snippet_url(@algorithm, @snippet) # <- no such method
# ...
end
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----...