Displaying 1 result from an estimated 1 matches for "algorithms_controller".
2007 Dec 03
4
Resource routing methods -- what am I missing?
...bvious... Anyone
care to help 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/.
--~--~---------~--~---...