Skip to content

davetchen/Raffler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http://evening-fog-7119.herokuapp.com/

4/2/2012 dtc
============
A simple application showing use of the "backbone-on-rails" Gem.
RailsCasts #323 and #325

> rvm 1.9.3-p125@rails321
> rails new raffler
> cd raffler
> rvm --create --rvmrc 1.9.3-p125@rails321

> rails g controller main index --skip-javascripts

Add 'backbone-on-rails' gem then:
> rails g backbone:install

And to add the "entry" Model to backbone:
> rails g backbone:scaffold entry

And to create the "entry" model (name & winner) and controller in Rails:
> rails g resource entry name winner:boolean --skip-javascripts
> rake db:migrate

Get ready to push to heroku...
> git init
> gem install heroku
> heroku accounts:set personal

> heroku create --stack cedar
http://evening-fog-7119.herokuapp.com/ | [email protected]:evening-fog-7119.git

> git push heroku master
> heroku run rake db:migrate

About

Backbone-on-rails project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published