Forum: Rails Engines development Bad permision in bootstrap task

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
032a7442b83ceebfc118c2f4f44cce4c?d=identicon&s=25 about users permision in rake bootstrap (Guest)
on 2006-04-20 18:32
juampe@devel:~/radrails/neneta$ rake --trace create_book_admin
(in /home/juampe/radrails/neneta)
** Invoke create_book_admin (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute create_book_admin
permissions
rake aborted!
Permission expected, got NilClass
/home/juampe/radrails/neneta/config/../vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:134:in
`raise_on_type_mismatch'
/home/juampe/radrails/neneta/config/../vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:24:in
`<<'
/home/juampe/radrails/neneta/config/../vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:23:in
`<<'
/home/juampe/radrails/neneta/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in
`transaction'
/home/juampe/radrails/neneta/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:91:in
`transaction'
/home/juampe/radrails/neneta/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:118:in
`transaction'
/home/juampe/radrails/neneta/config/../vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:22:in
`<<'
./vendor/plugins/riki_engine/tasks/riki_engine.rake:26
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in `invoke'
/usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7
/usr/bin/rake:18

before i install succesfull login_engine an user_engine and make
boostrap for each sucessfuly
after i install riki_engine and make rake bootstrap (for riki)
the user permission don't exist!

I see the bootstrap task and create_book_admin task
book_admin.permissions <<
Permission.find_by_controller_and_action('books', 'users') unless
book_admin.permissions.include?(Permission.find_by_controller_and_action('books',
'users'))

I see that users permission does not exist
05d703f649ef1d07e78d7b479fb4c4ac?d=identicon&s=25 James Adam (Guest)
on 2006-04-24 19:07
(Received via mailing list)
You should re-post this to engine-users, or the developer of Riki
themselves...

- james

On 4/20/06, about users permision in rake bootstrap <juampe@iquis.com>
wrote:
> 
/home/juampe/radrails/neneta/config/../vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:134:in
> `transaction'
> /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7
> book_admin.permissions.include?(Permission.find_by_controller_and_action('books',
>
--
* J *
  ~
This topic is locked and can not be replied to.