Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

New Survey

  • Loading branch information...
commit e524f79bc075dac6e46631e912e540582ee98ab0 1 parent 47437f6
Kevin Dias authored
Showing with 35 additions and 1 deletion.
  1. +9 −1 README.md
  2. +26 −0 surveys/my_survey.rb
10 README.md
View
@@ -81,6 +81,14 @@ Then, in the command line:
$ heroku run rake surveyor FILE=surveys/kitchen_sink_survey.rb
$ heroku open
-Now navigate to http://[yourappname].herokuapp.com/surveys
+Now navigate to http://[yourappname].herokuapp.com/surveys
+
+13) Try making your own survey
+
+Create a new file in the surveys folder of your project, name it 'my_survey.rb' and edit it as you like.
+
+14) Parse the survey
+
+ $ bundle exec rake surveyor FILE=surveys/my_survey.rb
26 surveys/my_survey.rb
View
@@ -0,0 +1,26 @@
+survey "My Survey" do
+
+ section "Section 1" do
+ label "This is Section 1 of 'My Survey'"
+
+ q_1 "What is your favorite color?", :pick => :one
+ a_1 "red"
+ a_2 "blue"
+ a_3 "green"
+ a_4 "yellow"
+ a_5 :other
+
+ end
+
+ section "Section 2" do
+ label "This is Section 2 of 'My Survey'"
+
+ q_2 "What colors do you like?", :pick => :any
+ a_1 "red"
+ a_2 "blue"
+ a_3 "green"
+ a_4 "yellow"
+
+ end
+end
+
Please sign in to comment.
Something went wrong with that request. Please try again.