Skip to content

Instantly share code, notes, and snippets.

@maasdesigner
Created August 24, 2013 18:42
Show Gist options
  • Save maasdesigner/6329775 to your computer and use it in GitHub Desktop.
Save maasdesigner/6329775 to your computer and use it in GitHub Desktop.
rails generate scaffold Client name:string address:string email:string remark:text
invoke active_record
/home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/connection_specification.rb:39:in `resolve_string_connection': development database is not configured (ActiveRecord::AdapterNotSpecified)
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/connection_specification.rb:25:in `spec'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in `establish_connection'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.14/lib/active_record/railtie.rb:88:in `block (2 levels) in <class:Railtie>'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.14/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.14/lib/active_record/base.rb:720:in `<top (required)>'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.14/lib/rails/generators/named_base.rb:166:in `pluralize_table_names?'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.14/lib/rails/generators/named_base.rb:114:in `table_name'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.14/lib/rails/generators/active_record/model/model_generator.rb:17:in `create_migration_file'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/invocation.rb:127:in `block in invoke_all'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/invocation.rb:127:in `each'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/invocation.rb:127:in `map'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/invocation.rb:127:in `invoke_all'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/group.rb:233:in `dispatch'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/invocation.rb:109:in `invoke'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/group.rb:278:in `block in _invoke_for_class_method'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/shell.rb:74:in `with_padding'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/group.rb:267:in `_invoke_for_class_method'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/group.rb:150:in `_invoke_from_option_orm'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/invocation.rb:127:in `block in invoke_all'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/invocation.rb:127:in `each'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/invocation.rb:127:in `map'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/invocation.rb:127:in `invoke_all'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/group.rb:233:in `dispatch'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.14/lib/rails/generators.rb:171:in `invoke'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.14/lib/rails/commands/generate.rb:12:in `<top (required)>'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `block in require'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'
from /home/maasdesigner/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.14/lib/rails/commands.rb:29:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
maasdesigner@ubuntu:~/Documents/adana$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment