>> messages = YAML.load(File.open(RAILS_ROOT + '/test/fixtures/message_triggers.yml'))
>> messages.each{|m| MessageTrigger.create(m[1])}
Notes to self
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2008
(51)
-
▼
March
(12)
- Generating unique random numbers
- Ignoring files in SVN
- alias_method for class methods
- Loading fixtures separately
- to_yaml
- Types of forms in Rails
- Date and Time Functions in MySQL
- Rails Gotchas: Routes
- Integer division
- Column type mappings for databases
- Instlling a specific version of a gem
- and (&&) operand
-
▼
March
(12)
No comments:
Post a Comment