Bad permision in bootstrap task

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:intransaction’
/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:intransaction’
/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:inexecute’
/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:ininvoke’
/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:ininvoke’
/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:inrun’
/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

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 [email protected]
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 *
    ~