Sha256: 64a2cab642f5aa250ff9b818fda0a20f7ce034d31ff71b1f572c6fd0a996bbcf
Contents?: true
Size: 973 Bytes
Versions: 3
Compression:
Stored size: 973 Bytes
Contents
ActionController::Routing::Routes.draw do |map| map.with_options :controller => 'surveyor' do |s| s.available_surveys "surveys", :conditions => {:method => :get}, :action => "new" # GET survey list s.take_survey "surveys/:survey_code", :conditions => {:method => :post}, :action => "create" # Only POST of survey to create s.view_my_survey "surveys/:survey_code/:response_set_code.:format", :conditions => {:method => :get}, :action => "show", :format => "html" # GET viewable/printable? survey s.edit_my_survey "surveys/:survey_code/:response_set_code/take", :conditions => {:method => :get}, :action => "edit" # GET editable survey s.update_my_survey "surveys/:survey_code/:response_set_code", :conditions => {:method => :put}, :action => "update" # PUT edited survey end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
surveyor-0.14.1 | config/routes.rb |
surveyor-0.14.0 | config/routes.rb |
surveyor-0.13.0 | config/routes.rb |