0.01
No commit activity in last 3 years
No release in over 3 years
This is a plugin that allows you to create a questionaire with custom scores.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

SurveySays¶ ↑

the purpose of this project is to allow you to maintain questionnaires on your rails 3 app.

The goal is to allow the questionnaire to be:

  • intelligent

  • flexible (able to change with time)

  • able to gather data about the user’s characteristics

  • able to score the user’s characteristics

Install¶ ↑

gem 'survey_says', :git => 'git://github.com/drhenner/survey_says.git'

move assets into your app

rails generate survey_says

move models into your app

rails generate survey_models

add PAPERCLIP_STORAGE_OPTS to environments/*.rb

for example:

PAPERCLIP_STORAGE_OPTS = {  :styles => {:mini => '48x48>',
                                     :small => '100x100>',
                                     :product => '320x320>',
                                     :large => '600x600>' },
                         :default_style => :product,
                         :url => "/assets/products/:id/:style/:basename.:extension",
                         :path => ":rails_root/public/assets/products/:id/:style/:basename.:extension" }

Edit the user.rb in your app:

 has_many :user_answers
 has_many :answers, :through => :user_answers

acts_as_survey_says

 def survey_admin?
   true # add code here...  return true for users that can add/edit the survey information
 end

bundle exec rake survey_says_engine:install:migrations

Contribute¶ ↑

Clone the engine:

  • git clone git@github.com:drhenner/survey_says.git

  • gem install bundler

  • bundle install

  • rake db:migrate

  • cd test/dummy/

  • rake db:test:prepare

  • cd ../..

  • rake test

Start making edits…