Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 doc
Octocat-spinner-32 lib
Octocat-spinner-32 public
Octocat-spinner-32 script
Octocat-spinner-32 test
Octocat-spinner-32 vendor
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 config.ru
README
Assumptions:
Rails 3.0.5
RVM
Ruby 1.9.2


$ rails new surveysays
$ cd surveysays/
[surveysays]$ mate .

> File Change 
-> modify the Gemfile
gem "nifty-generators", :group => :development
-> save the gemfile

-> install the new gems
[surveysays]$ bundle install

[surveysays]$ rails g nifty:layout

When you run the next command you should see a warning, Select Y to overwrite.

[surveysays]$ rails g nifty:layout

[surveysays]$ rails g nifty:scaffold survey name:string

[surveysays]$ rake db:migrate

[surveysays]$ rails g model question survey_id:integer content:text
[surveysays]$ rake db:migrate

[surveysays]$ rails g model answer question_id:integer content:string
[surveysays]$ rake db:migrate

[surveysays]$ rails s

That's it - Should be working now.

Something went wrong with that request. Please try again.