Skip to content

Instantly share code, notes, and snippets.

@pullmonkey
Created August 11, 2012 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pullmonkey/3319671 to your computer and use it in GitHub Desktop.
Save pullmonkey/3319671 to your computer and use it in GitHub Desktop.
dynamic select setup
# 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