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
on 2006-04-20 18:32
on 2006-04-24 19:07
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 * ~
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.