Sha256: 8b04a47d8e0cb8d8e100271332f929c877f73bc989491f4b70b0b2d061c33922

Contents?: true

Size: 1.56 KB

Versions: 1

Compression:

Stored size: 1.56 KB

Contents

= 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 railties: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...

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
survey_says-0.0.1 README.rdoc