I just wanna give a try on the new frame Padrino. I followed the steps given here.
I am stuck at running the rake tasks.
I used Mysql as my database. I created the project using the command.
padrino g project sample_blog -t shoulda -e haml -c sass -s jquery -d activerecord -a mysql padrino g admin
I have all the dependencies in order, I did Bundle install to ensure it. Then when I run the rake task I get this error.
$ padrino rake ar:create --trace
=> Executing Rake ar:create --trace ...
** Invoke ar:create (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute ar:create
rake aborted!
undefined method []' for nil:NilClass
create_database'
/usr/lib/ruby/gems/1.8/gems/padrino-gen-0.9.14/lib/padrino-gen/padrino-tasks/activerecord.rb:56:in
/usr/lib/ruby/gems/1.8/gems/padrino-gen-0.9.14/lib/padrino-gen/padrino-tasks/activerecord.rb:31
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in call'
execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in each'
execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in invoke_with_call_chain'
synchronize'
/usr/lib/ruby/1.8/monitor.rb:242:in
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in invoke_with_call_chain'
invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in invoke_task'
top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in each'
top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling'
top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in
/usr/lib/ruby/gems/1.8/gems/padrino-core-0.9.14/lib/padrino-core/cli/rake.rb:9:in init'
rake'
/usr/lib/ruby/gems/1.8/gems/padrino-core-0.9.14/lib/padrino-core/cli/base.rb:50:in
/usr/lib/ruby/gems/1.8/gems/thor-0.13.4/lib/thor/task.rb:33:in send'
run'
/usr/lib/ruby/gems/1.8/gems/thor-0.13.4/lib/thor/task.rb:33:in
/usr/lib/ruby/gems/1.8/gems/thor-0.13.4/lib/thor/invocation.rb:109:in invoke'
call'
/usr/lib/ruby/gems/1.8/gems/thor-0.13.4/lib/thor/invocation.rb:116:in
/usr/lib/ruby/gems/1.8/gems/thor-0.13.4/lib/thor/invocation.rb:116:in invoke'
/usr/lib/ruby/gems/1.8/gems/thor-0.13.4/lib/thor.rb:137:in
start'
/usr/lib/ruby/gems/1.8/gems/thor-0.13.4/lib/thor/base.rb:378:in start'
start'
/usr/lib/ruby/gems/1.8/gems/thor-0.13.4/lib/thor.rb:124:in
/usr/lib/ruby/gems/1.8/gems/padrino-core-0.9.14/bin/padrino:24
/usr/bin/padrino:19:in `load'
/usr/bin/padrino:19
$ padrino rake ar:migrate --trace
=> Executing Rake ar:migrate --trace ...
** Invoke ar:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute ar:migrate
rake aborted!
ActiveRecord::ConnectionNotEstablished
/home/deepak/.bundle/ruby/1.8/gems/activerecord- 2.3.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in retrieve_connection'
retrieve_connection'
/home/deepak/.bundle/ruby/1.8/gems/activerecord- 2.3.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in
/home/deepak/.bundle/ruby/1.8/gems/activerecord- 2.3.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in connection'
initialize'
/home/deepak/.bundle/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/migration.rb:440:in
/home/deepak/.bundle/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/migration.rb:401:in new'
up'
/home/deepak/.bundle/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/migration.rb:401:in
/home/deepak/.bundle/ruby/1.8/gems/activerecord-2.3.8/lib/active_record/migration.rb:383:in migrate'
call'
/usr/lib/ruby/gems/1.8/gems/padrino-gen-0.9.14/lib/padrino-gen/padrino-tasks/activerecord.rb:136
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in execute'
each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in execute'
invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in
/usr/lib/ruby/1.8/monitor.rb:242:in synchronize'
invoke_with_call_chain'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in invoke'
invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level'
each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level'
standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in top_level'
init'
/usr/lib/ruby/gems/1.8/gems/padrino-core-0.9.14/lib/padrino-core/cli/rake.rb:9:in
/usr/lib/ruby/gems/1.8/gems/padrino-core-0.9.14/lib/padrino-core/cli/base.rb:50:in rake'
send'
/usr/lib/ruby/gems/1.8/gems/thor-0.13.4/lib/thor/task.rb:33:in
/usr/lib/ruby/gems/1.8/gems/thor-0.13.4/lib/thor/task.rb:33:in run'
invoke'
/usr/lib/ruby/gems/1.8/gems/thor-0.13.4/lib/thor/invocation.rb:109:in
/usr/lib/ruby/gems/1.8/gems/thor-0.13.4/lib/thor/invocation.rb:116:in call'
invoke'
/usr/lib/ruby/gems/1.8/gems/thor-0.13.4/lib/thor/invocation.rb:116:in
/usr/lib/ruby/gems/1.8/gems/thor-0.13.4/lib/thor.rb:137:in start'
start'
/usr/lib/ruby/gems/1.8/gems/thor-0.13.4/lib/thor/base.rb:378:in
/usr/lib/ruby/gems/1.8/gems/thor-0.13.4/lib/thor.rb:124:in start'
load'
/usr/lib/ruby/gems/1.8/gems/padrino-core-0.9.14/bin/padrino:24
/usr/bin/padrino:19:in
/usr/bin/padrino:19