Mercurial > hg > soundsoftware-site
view db/seeds.rb @ 107:361f1e8b2e23 luisf
Feature #1:
Fixed the collection_select variable issue
User edit view: removed wiki toolbar and description from the description text area in the user;
User edit view: added institutions collection select;
User show view: institution name now visible.
Users_controller: fixed a bug retrieving the institution name
author | luisf |
---|---|
date | Fri, 17 Dec 2010 11:18:51 +0000 |
parents | 596803cb34fc |
children | da7cba64948d |
line wrap: on
line source
# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). # # Examples: # # cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }]) # Major.create(:name => 'Daley', :city => cities.first) Institution.delete_all open("db/seed_data/institutions.txt") do |institutions| institutions.read.each_line do |institution| Institution.create(:name => institution.chomp) end end