search for: snippets_controller

Displaying 1 result from an estimated 1 matches for "snippets_controller".

2007 Dec 03
4
Resource routing methods -- what am I missing?
...n doing map.resources routing for a while now, so whatever I''m missing must be something stupid and obvious... 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,...