Skip to content

Instantly share code, notes, and snippets.

@neaf
Created March 21, 2009 17:02
Show Gist options
  • Save neaf/82899 to your computer and use it in GitHub Desktop.
Save neaf/82899 to your computer and use it in GitHub Desktop.
[~/Projects/typify] # merb-gen model User
Loading init file from /Users/neaf/Projects/typify/config/init.rb
Loading /Users/neaf/Projects/typify/config/environments/development.rb
Generating with model generator:
Loading /Users/neaf/Projects/typify/config/environments/development.rb
[ADDED] spec/models/user_spec.rb
[CONFLICT] app/models/user.rb
1. skip
2. overwrite
3. render
4. diff
5. abort
How do you wish to proceed with this file?
2
Overwritten
String#pluralize is deprecated and will be removed in a future version. require "sequel/extensions/inflector" first.
/Library/Ruby/Gems/1.8/gems/sequel-2.11.0/lib/sequel_model/deprecated_inflector.rb:251:in `pluralize'
/Users/neaf/.gem/ruby/1.8/gems/merb-gen-1.0.10/lib/generators/migration.rb:20:in `table_name'
(erb):9:in `render'
(eval):1:in `render'
/Library/Ruby/Gems/1.8/gems/templater-0.5.0/lib/templater/actions/template.rb:50:in `invoke!'
/Library/Ruby/Gems/1.8/gems/templater-0.5.0/lib/templater/actions/template.rb:50:in `open'
/Library/Ruby/Gems/1.8/gems/templater-0.5.0/lib/templater/actions/template.rb:50:in `invoke!'
/Library/Ruby/Gems/1.8/gems/templater-0.5.0/lib/templater/cli/generator.rb:104:in `step_through_templates'
/Library/Ruby/Gems/1.8/gems/templater-0.5.0/lib/templater/cli/generator.rb:86:in `each'
/Library/Ruby/Gems/1.8/gems/templater-0.5.0/lib/templater/cli/generator.rb:86:in `step_through_templates'
String#pluralize is deprecated and will be removed in a future version. require "sequel/extensions/inflector" first.
/Library/Ruby/Gems/1.8/gems/sequel-2.11.0/lib/sequel_model/deprecated_inflector.rb:251:in `pluralize'
/Users/neaf/.gem/ruby/1.8/gems/merb-gen-1.0.10/lib/generators/migration.rb:20:in `table_name'
(erb):20:in `render'
(eval):1:in `render'
/Library/Ruby/Gems/1.8/gems/templater-0.5.0/lib/templater/actions/template.rb:50:in `invoke!'
/Library/Ruby/Gems/1.8/gems/templater-0.5.0/lib/templater/actions/template.rb:50:in `open'
/Library/Ruby/Gems/1.8/gems/templater-0.5.0/lib/templater/actions/template.rb:50:in `invoke!'
/Library/Ruby/Gems/1.8/gems/templater-0.5.0/lib/templater/cli/generator.rb:104:in `step_through_templates'
/Library/Ruby/Gems/1.8/gems/templater-0.5.0/lib/templater/cli/generator.rb:86:in `each'
/Library/Ruby/Gems/1.8/gems/templater-0.5.0/lib/templater/cli/generator.rb:86:in `step_through_templates'
[ADDED] schema/migrations/001_user_migration.rb
Don't forget to define the model schema in your User class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment