Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
doc
lib/tasks
public
script
test
vendor/plugins
.gitignore
Gemfile
Gemfile.lock
README
Rakefile
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.