Problem solved , it was problem in my database.yml file
On 18 Mar, 21:45, Pietia
<peter.kal...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hii have problem running rake db:test:purge ( my test database is
> empty ) : adter running with trace it shouts :
>
> matthew:rails code pietia$ rake db:test:purge --trace
> (in /Users/pietia/Documents/praca/projekty/silk/rails code)
> ** Invoke db:test:purge (first_time)
> ** Invoke environment (first_time)
> ** Execute environment
> ** Execute db:test:purge
> rake aborted!
> You have a nil object when you didn''t expect it!
> You might have expected an instance of ActiveRecord::Base.
> The error occurred while evaluating nil.[]
> /Users/pietia/Documents/praca/projekty/silk/rails code/vendor/rails/
> railties/lib/tasks/databases.rake:347
> /Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:617:in
`call''
> /Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:617:in
> `execute''
> /Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:612:in
`each''
> /Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:612:in
> `execute''
> /Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:578:in
> `invoke_with_call_chain''
> /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize''
> /Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:571:in
> `invoke_with_call_chain''
> /Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:564:in
> `invoke''
> /Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:2027:in
> `invoke_task''
> /Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in
> `top_level''
> /Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in
`each''
> /Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in
> `top_level''
> /Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in
> `standard_exception_handling''
> /Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:1999:in
> `top_level''
> /Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:1977:in
`run''
> /Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in
> `standard_exception_handling''
> /Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:1974:in
`run''
> /Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/bin/rake:31
> /opt/local/bin/rake:19:in `load''
> /opt/local/bin/rake:19
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---