Skip to content

Instantly share code, notes, and snippets.

@fairchild
Created September 15, 2008 23:13
Show Gist options
  • Save fairchild/10963 to your computer and use it in GitHub Desktop.
Save fairchild/10963 to your computer and use it in GitHub Desktop.
in routes.rb
map.resources :staff, :member => {:graph_code=>:get}
in controller,
@graph = open_flash_chart_object(500,300, graph_code_staff_path( {:title=>'Timesheet', :conditions=>@conditions}))
in view, error:
graph_code_staff_url failed to generate from {:title=>"Timesheet", :action=>"graph_code", :conditions=>"Sheet_Entry.sheet_date>'2008-03-17 16:13:10'", :controller=>"staff"}, expected: {:action=>"graph_code", :controller=>"staff"}, diff: {:title=>"Timesheet", :conditions=>"Sheet_Entry.sheet_date>'2008-03-17 16:13:10'"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment