Created
August 11, 2012 01:03
-
-
Save pullmonkey/3319671 to your computer and use it in GitHub Desktop.
dynamic select setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create new rails app | |
rails new dynamic_select_boxes -m https://raw.github.com/RailsApps/rails3-application-templates/master/rails3-haml-html5-template.rb | |
# create models: | |
rails g model genre name:string | |
rails g model artist name:string genre_id:integer | |
rails g model song title:string artist_id:integer | |
rake db:migrate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment