Displaying 1 result from an estimated 1 matches for "snippet_url".
2007 Dec 03
4
Resource routing methods -- what am I missing?
...h => :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/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Grou...