just to let you know, there are two versions of adva-cms:
adva-cms which is build for rails 2.x
adva-cms3 which is build for rails 3.0
Which one are you referring to?
Torsten
> --
> You received this message because you are subscribed to the Google Groups "adva-cms" group.
> To post to this group, send email to adva...@googlegroups.com.
> To unsubscribe from this group, send email to adva-cms+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/adva-cms?hl=en.
>
Dr. Torsten Becker
BESTgroup Consulting & Software GmbH
August-Bebel-Str. 27 14482 Potsdam Germany
Tel +49 331 97996810
Fax +49 331 97996812
Mobile +49 171 443 1973
www.best-group.eu
I didn't know about advacms3. I didn't see it as a branch on github.
Where can I get it?
sorry it is adva-cms2 for rails 3 - I always get this numbering mixed up..
https://github.com/svenfuchs/adva-cms2
Torsten
Well it looks like I was using the wrong one so I went to
https://github.com/svenfuchs/adva-cms2 and tried to follow the
instructions in there but no joy there either.
I cloned the repo, ran bundle install and then I ran $thor adva:app
adva_app --target .
And I get the following error.
/home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor/runner.rb:34:in
`method_missing': undefined method `start' for nil:NilClass
(NoMethodError)
from /home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor/task.rb:22:in
`send'
from /home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor/task.rb:22:in
`run'
from /home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor/task.rb:108:in
`run'
from /home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor/invocation.rb:118:in
`invoke_task'
from /home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor.rb:263:in
`dispatch'
from /home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor/base.rb:389:in
`start'
from /home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/bin/thor:6
from /home/tim/.rvm/gems/ruby-1.8.7-p249/bin/thor:19:in `load'
from /home/tim/.rvm/gems/ruby-1.8.7-p249/bin/thor:19
I also tried the branch rails-3.0.3 with the same result
NoMethodError in InstallationsController#create
super called outside of method
Rails.root: /usr/local/home/tim/source/ruby/rails_sites/cms/adva_app
Application Trace | Framework Trace | Full Trace
activerecord (3.0.3) lib/active_record/callbacks.rb:277
adva-core (0.0.5)
lib/core_ext/rails/active_record/skip_callbacks.rb:38:in `call'
adva-core (0.0.5)
lib/core_ext/rails/active_record/skip_callbacks.rb:38:in
`_run_save_callbacks'
activerecord (3.0.3) lib/active_record/callbacks.rb:277:in `create_or_update'
activerecord (3.0.3) lib/active_record/persistence.rb:39:in `save'
activerecord (3.0.3) lib/active_record/validations.rb:43:in `save'
activerecord (3.0.3) lib/active_record/attribute_methods/dirty.rb:21:in `save'
activerecord (3.0.3) lib/active_record/transactions.rb:237:in `save'
activerecord (3.0.3) lib/active_record/transactions.rb:289:in
`with_transaction_returning_status'
activerecord (3.0.3)
lib/active_record/connection_adapters/abstract/database_statements.rb:139:in
`transaction'
activerecord (3.0.3) lib/active_record/transactions.rb:204:in `transaction'
activerecord (3.0.3) lib/active_record/transactions.rb:287:in
`with_transaction_returning_status'
activerecord (3.0.3) lib/active_record/transactions.rb:237:in `save'
activerecord (3.0.3) lib/active_record/transactions.rb:248:in
`rollback_active_record_state!'
activerecord (3.0.3) lib/active_record/transactions.rb:236:in `save'
activerecord (3.0.3)
lib/active_record/associations/has_many_association.rb:66:in
`insert_record'
activerecord (3.0.3)
lib/active_record/associations/association_proxy.rb:151:in `send'
activerecord (3.0.3)
lib/active_record/associations/association_proxy.rb:151:in `send'
activerecord (3.0.3) lib/active_record/autosave_association.rb:304:in
`save_collection_association'
activerecord (3.0.3)
lib/active_record/associations/association_collection.rb:430:in
`method_missing'
activerecord (3.0.3)
lib/active_record/associations/association_proxy.rb:216:in
`method_missing'
activerecord (3.0.3)
lib/active_record/associations/association_proxy.rb:216:in `each'
activerecord (3.0.3)
lib/active_record/associations/association_proxy.rb:216:in `send'
activerecord (3.0.3)
lib/active_record/associations/association_proxy.rb:216:in
`method_missing'
activerecord (3.0.3)
lib/active_record/associations/association_collection.rb:430:in
`method_missing'
activerecord (3.0.3) lib/active_record/autosave_association.rb:297:in
`save_collection_association'
activerecord (3.0.3) lib/active_record/autosave_association.rb:163:in
`autosave_associated_records_for_users'
activesupport (3.0.3) lib/active_support/callbacks.rb:418:in
`_run_create_callbacks'
activerecord (3.0.3) lib/active_record/callbacks.rb:281:in `create'
activerecord (3.0.3) lib/active_record/persistence.rb:246:in `create_or_update'
activerecord (3.0.3) lib/active_record/callbacks.rb:277:in `create_or_update'
activesupport (3.0.3) lib/active_support/callbacks.rb:418:in
`_run_save_callbacks'
activerecord (3.0.3) lib/active_record/callbacks.rb:277:in `create_or_update'
activerecord (3.0.3) lib/active_record/persistence.rb:39:in `save'
activerecord (3.0.3) lib/active_record/validations.rb:43:in `save'
activerecord (3.0.3) lib/active_record/attribute_methods/dirty.rb:21:in `save'
activerecord (3.0.3) lib/active_record/transactions.rb:237:in `save'
activerecord (3.0.3) lib/active_record/transactions.rb:289:in
`with_transaction_returning_status'
activerecord (3.0.3)
lib/active_record/connection_adapters/abstract/database_statements.rb:139:in
`transaction'
activerecord (3.0.3) lib/active_record/transactions.rb:204:in `transaction'
activerecord (3.0.3) lib/active_record/transactions.rb:287:in
`with_transaction_returning_status'
activerecord (3.0.3) lib/active_record/transactions.rb:237:in `save'
activerecord (3.0.3) lib/active_record/transactions.rb:248:in
`rollback_active_record_state!'
activerecord (3.0.3) lib/active_record/transactions.rb:236:in `save'
activerecord (3.0.3)
lib/active_record/associations/association_proxy.rb:218:in `send'
activerecord (3.0.3)
lib/active_record/associations/association_proxy.rb:218:in
`method_missing'
activerecord (3.0.3) lib/active_record/autosave_association.rb:357:in
`save_belongs_to_association'
activerecord (3.0.3) lib/active_record/autosave_association.rb:172:in
`autosave_associated_records_for_account'
activesupport (3.0.3) lib/active_support/callbacks.rb:414:in
`_run_save_callbacks'
activerecord (3.0.3) lib/active_record/callbacks.rb:277:in `create_or_update'
activerecord (3.0.3) lib/active_record/persistence.rb:56:in `save!'
activerecord (3.0.3) lib/active_record/validations.rb:49:in `save!'
activerecord (3.0.3) lib/active_record/attribute_methods/dirty.rb:30:in `save!'
activerecord (3.0.3) lib/active_record/transactions.rb:242:in `save!'
activerecord (3.0.3) lib/active_record/transactions.rb:289:in
`with_transaction_returning_status'
activerecord (3.0.3)
lib/active_record/connection_adapters/abstract/database_statements.rb:139:in
`transaction'
activerecord (3.0.3) lib/active_record/transactions.rb:204:in `transaction'
activerecord (3.0.3) lib/active_record/transactions.rb:287:in
`with_transaction_returning_status'
activerecord (3.0.3) lib/active_record/transactions.rb:242:in `save!'
activerecord (3.0.3) lib/active_record/validations.rb:34:in `create!'
/usr/localadva-core (0.0.5) app/models/site.rb:14:in `install'
adva-core (0.0.5)
lib/core_ext/rails/active_record/skip_callbacks.rb:28:in
`skip_callbacks'
/usr/localadva-core (0.0.5) app/models/site.rb:13:in `install'
/usr/localadva-core (0.0.5)
app/controllers/installations_controller.rb:11:in `create'
actionpack (3.0.3) lib/action_controller/metal/implicit_render.rb:4:in
`send_action'
actionpack (3.0.3) lib/action_controller/metal/implicit_render.rb:4:in
`send_action'
actionpack (3.0.3) lib/abstract_controller/base.rb:151:in `process_action'
actionpack (3.0.3) lib/action_controller/metal/rendering.rb:11:in
`process_action'
actionpack (3.0.3) lib/abstract_controller/callbacks.rb:18:in `process_action'
activesupport (3.0.3) lib/active_support/callbacks.rb:450:in
`_run__808774253__process_action__524098549__callbacks'
activesupport (3.0.3) lib/active_support/callbacks.rb:409:in `send'
activesupport (3.0.3) lib/active_support/callbacks.rb:409:in
`_run_process_action_callbacks'
activesupport (3.0.3) lib/active_support/callbacks.rb:93:in `send'
activesupport (3.0.3) lib/active_support/callbacks.rb:93:in `run_callbacks'
actionpack (3.0.3) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.0.3)
lib/action_controller/metal/instrumentation.rb:30:in `process_action'
activesupport (3.0.3) lib/active_support/notifications.rb:52:in `instrument'
activesupport (3.0.3)
lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.0.3) lib/active_support/notifications.rb:52:in `instrument'
actionpack (3.0.3)
lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.0.3) lib/action_controller/metal/rescue.rb:17:in `process_action'
actionpack (3.0.3) lib/abstract_controller/base.rb:120:in `process'
actionpack (3.0.3) lib/abstract_controller/rendering.rb:40:in `process'
actionpack (3.0.3) lib/action_controller/metal.rb:138:in `dispatch'
actionpack (3.0.3)
lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.0.3) lib/action_controller/metal.rb:178
actionpack (3.0.3) lib/action_dispatch/routing/route_set.rb:62:in `call'
actionpack (3.0.3) lib/action_dispatch/routing/route_set.rb:62:in `dispatch'
actionpack (3.0.3) lib/action_dispatch/routing/route_set.rb:27:in `call'
rack-mount (0.6.13) lib/rack/mount/route_set.rb:148
routing-filter (0.2.0) lib/routing_filter/adapters/rails_3.rb:68:in `call'
routing-filter (0.2.0) lib/routing_filter/adapters/rails_3.rb:68:in `recognize'
rack-mount (0.6.13) lib/rack/mount/route_set.rb:139:in `call'
actionpack (3.0.3) lib/action_dispatch/routing/route_set.rb:492:in `call'
i18n-missing_translations (0.0.1) lib/i18n/missing_translations.rb:26:in `call'
warden (0.10.7) lib/warden/manager.rb:35:in `call'
warden (0.10.7) lib/warden/manager.rb:34:in `catch'
warden (0.10.7) lib/warden/manager.rb:34:in `call'
actionpack (3.0.3)
lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
actionpack (3.0.3) lib/action_dispatch/middleware/head.rb:14:in `call'
rack (1.2.1) lib/rack/methodoverride.rb:24:in `call'
actionpack (3.0.3) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.0.3) lib/action_dispatch/middleware/flash.rb:182:in `call'
actionpack (3.0.3)
lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call'
actionpack (3.0.3) lib/action_dispatch/middleware/cookies.rb:295:in `call'
activerecord (3.0.3) lib/active_record/query_cache.rb:32:in `call'
activerecord (3.0.3)
lib/active_record/connection_adapters/abstract/query_cache.rb:28:in
`cache'
activerecord (3.0.3) lib/active_record/query_cache.rb:12:in `cache'
activerecord (3.0.3) lib/active_record/query_cache.rb:31:in `call'
activerecord (3.0.3)
lib/active_record/connection_adapters/abstract/connection_pool.rb:353:in
`call'
actionpack (3.0.3) lib/action_dispatch/middleware/callbacks.rb:46:in `call'
activesupport (3.0.3) lib/active_support/callbacks.rb:415:in
`_run_call_callbacks'
actionpack (3.0.3) lib/action_dispatch/middleware/callbacks.rb:44:in `call'
rack (1.2.1) lib/rack/sendfile.rb:107:in `call'
actionpack (3.0.3) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
actionpack (3.0.3)
lib/action_dispatch/middleware/show_exceptions.rb:46:in `call'
rack-cache-tags (0.0.6) lib/rack/cache/tags.rb:29:in `call'
rack-cache-purge (0.0.2) lib/rack/cache/purge/base.rb:14:in `call'
rack-cache (0.5.3) lib/rack/cache/context.rb:129:in `forward'
rack-cache (0.5.3) lib/rack/cache/context.rb:136:in `pass'
rack-cache (0.5.3) lib/rack/cache/context.rb:148:in `invalidate'
rack-cache (0.5.3) lib/rack/cache/context.rb:70:in `call!'
rack-cache (0.5.3) lib/rack/cache/context.rb:50:in `call'
railties (3.0.3) lib/rails/rack/logger.rb:13:in `call'
rack (1.2.1) lib/rack/runtime.rb:17:in `call'
activesupport (3.0.3)
lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.2.1) lib/rack/lock.rb:11:in `call'
rack (1.2.1) lib/rack/lock.rb:11:in `synchronize'
rack (1.2.1) lib/rack/lock.rb:11:in `call'
/usr/localadva-core (0.0.5) lib/adva/rack/static.rb:28:in `call'
actionpack (3.0.3) lib/action_dispatch/middleware/static.rb:30:in `call'
railties (3.0.3) lib/rails/application.rb:168:in `call'
railties (3.0.3) lib/rails/application.rb:77:in `send'
railties (3.0.3) lib/rails/application.rb:77:in `method_missing'
railties (3.0.3) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.2.1) lib/rack/content_length.rb:13:in `call'
rack (1.2.1) lib/rack/handler/webrick.rb:52:in `service'
/home/tim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/httpserver.rb:104:in
`service'
/home/tim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/httpserver.rb:65:in
`run'
/home/tim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/server.rb:173:in
`start_thread'
/home/tim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/server.rb:162:in
`start'
/home/tim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/server.rb:162:in
`start_thread'
/home/tim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/server.rb:95:in
`start'
/home/tim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/server.rb:92:in
`each'
/home/tim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/server.rb:92:in
`start'
/home/tim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/server.rb:23:in
`start'
/home/tim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/server.rb:82:in
`start'
rack (1.2.1) lib/rack/handler/webrick.rb:13:in `run'
rack (1.2.1) lib/rack/server.rb:213:in `start'
railties (3.0.3) lib/rails/commands/server.rb:65:in `start'
railties (3.0.3) lib/rails/commands.rb:30
railties (3.0.3) lib/rails/commands.rb:27:in `tap'
railties (3.0.3) lib/rails/commands.rb:27
script/rails:6:in `require'
script/rails:6
activerecord (3.0.3) lib/active_record/callbacks.rb:277
adva-core (0.0.5)
lib/core_ext/rails/active_record/skip_callbacks.rb:38:in `call'
adva-core (0.0.5)
lib/core_ext/rails/active_record/skip_callbacks.rb:38:in
`_run_save_callbacks'
activerecord (3.0.3) lib/active_record/callbacks.rb:277:in `create_or_update'
activerecord (3.0.3) lib/active_record/persistence.rb:39:in `save'
activerecord (3.0.3) lib/active_record/validations.rb:43:in `save'
activerecord (3.0.3) lib/active_record/attribute_methods/dirty.rb:21:in `save'
activerecord (3.0.3) lib/active_record/transactions.rb:237:in `save'
activerecord (3.0.3) lib/active_record/transactions.rb:289:in
`with_transaction_returning_status'
activerecord (3.0.3)
lib/active_record/connection_adapters/abstract/database_statements.rb:139:in
`transaction'
activerecord (3.0.3) lib/active_record/transactions.rb:204:in `transaction'
activerecord (3.0.3) lib/active_record/transactions.rb:287:in
`with_transaction_returning_status'
activerecord (3.0.3) lib/active_record/transactions.rb:237:in `save'
activerecord (3.0.3) lib/active_record/transactions.rb:248:in
`rollback_active_record_state!'
activerecord (3.0.3) lib/active_record/transactions.rb:236:in `save'
activerecord (3.0.3)
lib/active_record/associations/has_many_association.rb:66:in
`insert_record'
activerecord (3.0.3)
lib/active_record/associations/association_proxy.rb:151:in `send'
activerecord (3.0.3)
lib/active_record/associations/association_proxy.rb:151:in `send'
activerecord (3.0.3) lib/active_record/autosave_association.rb:304:in
`save_collection_association'
activerecord (3.0.3)
lib/active_record/associations/association_collection.rb:430:in
`method_missing'
activerecord (3.0.3)
lib/active_record/associations/association_proxy.rb:216:in
`method_missing'
activerecord (3.0.3)
lib/active_record/associations/association_proxy.rb:216:in `each'
activerecord (3.0.3)
lib/active_record/associations/association_proxy.rb:216:in `send'
activerecord (3.0.3)
lib/active_record/associations/association_proxy.rb:216:in
`method_missing'
activerecord (3.0.3)
lib/active_record/associations/association_collection.rb:430:in
`method_missing'
activerecord (3.0.3) lib/active_record/autosave_association.rb:297:in
`save_collection_association'
activerecord (3.0.3) lib/active_record/autosave_association.rb:163:in
`autosave_associated_records_for_users'
activesupport (3.0.3) lib/active_support/callbacks.rb:418:in
`_run_create_callbacks'
activerecord (3.0.3) lib/active_record/callbacks.rb:281:in `create'
activerecord (3.0.3) lib/active_record/persistence.rb:246:in `create_or_update'
activerecord (3.0.3) lib/active_record/callbacks.rb:277:in `create_or_update'
activesupport (3.0.3) lib/active_support/callbacks.rb:418:in
`_run_save_callbacks'
activerecord (3.0.3) lib/active_record/callbacks.rb:277:in `create_or_update'
activerecord (3.0.3) lib/active_record/persistence.rb:39:in `save'
activerecord (3.0.3) lib/active_record/validations.rb:43:in `save'
activerecord (3.0.3) lib/active_record/attribute_methods/dirty.rb:21:in `save'
activerecord (3.0.3) lib/active_record/transactions.rb:237:in `save'
activerecord (3.0.3) lib/active_record/transactions.rb:289:in
`with_transaction_returning_status'
activerecord (3.0.3)
lib/active_record/connection_adapters/abstract/database_statements.rb:139:in
`transaction'
activerecord (3.0.3) lib/active_record/transactions.rb:204:in `transaction'
activerecord (3.0.3) lib/active_record/transactions.rb:287:in
`with_transaction_returning_status'
activerecord (3.0.3) lib/active_record/transactions.rb:237:in `save'
activerecord (3.0.3) lib/active_record/transactions.rb:248:in
`rollback_active_record_state!'
activerecord (3.0.3) lib/active_record/transactions.rb:236:in `save'
activerecord (3.0.3)
lib/active_record/associations/association_proxy.rb:218:in `send'
activerecord (3.0.3)
lib/active_record/associations/association_proxy.rb:218:in
`method_missing'
activerecord (3.0.3) lib/active_record/autosave_association.rb:357:in
`save_belongs_to_association'
activerecord (3.0.3) lib/active_record/autosave_association.rb:172:in
`autosave_associated_records_for_account'
activesupport (3.0.3) lib/active_support/callbacks.rb:414:in
`_run_save_callbacks'
activerecord (3.0.3) lib/active_record/callbacks.rb:277:in `create_or_update'
activerecord (3.0.3) lib/active_record/persistence.rb:56:in `save!'
activerecord (3.0.3) lib/active_record/validations.rb:49:in `save!'
activerecord (3.0.3) lib/active_record/attribute_methods/dirty.rb:30:in `save!'
activerecord (3.0.3) lib/active_record/transactions.rb:242:in `save!'
activerecord (3.0.3) lib/active_record/transactions.rb:289:in
`with_transaction_returning_status'
activerecord (3.0.3)
lib/active_record/connection_adapters/abstract/database_statements.rb:139:in
`transaction'
activerecord (3.0.3) lib/active_record/transactions.rb:204:in `transaction'
activerecord (3.0.3) lib/active_record/transactions.rb:287:in
`with_transaction_returning_status'
activerecord (3.0.3) lib/active_record/transactions.rb:242:in `save!'
activerecord (3.0.3) lib/active_record/validations.rb:34:in `create!'
/usr/localadva-core (0.0.5) app/models/site.rb:14:in `install'
adva-core (0.0.5)
lib/core_ext/rails/active_record/skip_callbacks.rb:28:in
`skip_callbacks'
/usr/localadva-core (0.0.5) app/models/site.rb:13:in `install'
/usr/localadva-core (0.0.5)
app/controllers/installations_controller.rb:11:in `create'
actionpack (3.0.3) lib/action_controller/metal/implicit_render.rb:4:in
`send_action'
actionpack (3.0.3) lib/action_controller/metal/implicit_render.rb:4:in
`send_action'
actionpack (3.0.3) lib/abstract_controller/base.rb:151:in `process_action'
actionpack (3.0.3) lib/action_controller/metal/rendering.rb:11:in
`process_action'
actionpack (3.0.3) lib/abstract_controller/callbacks.rb:18:in `process_action'
activesupport (3.0.3) lib/active_support/callbacks.rb:450:in
`_run__808774253__process_action__524098549__callbacks'
activesupport (3.0.3) lib/active_support/callbacks.rb:409:in `send'
activesupport (3.0.3) lib/active_support/callbacks.rb:409:in
`_run_process_action_callbacks'
activesupport (3.0.3) lib/active_support/callbacks.rb:93:in `send'
activesupport (3.0.3) lib/active_support/callbacks.rb:93:in `run_callbacks'
actionpack (3.0.3) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.0.3)
lib/action_controller/metal/instrumentation.rb:30:in `process_action'
activesupport (3.0.3) lib/active_support/notifications.rb:52:in `instrument'
activesupport (3.0.3)
lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.0.3) lib/active_support/notifications.rb:52:in `instrument'
actionpack (3.0.3)
lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.0.3) lib/action_controller/metal/rescue.rb:17:in `process_action'
actionpack (3.0.3) lib/abstract_controller/base.rb:120:in `process'
actionpack (3.0.3) lib/abstract_controller/rendering.rb:40:in `process'
actionpack (3.0.3) lib/action_controller/metal.rb:138:in `dispatch'
actionpack (3.0.3)
lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.0.3) lib/action_controller/metal.rb:178
actionpack (3.0.3) lib/action_dispatch/routing/route_set.rb:62:in `call'
actionpack (3.0.3) lib/action_dispatch/routing/route_set.rb:62:in `dispatch'
actionpack (3.0.3) lib/action_dispatch/routing/route_set.rb:27:in `call'
rack-mount (0.6.13) lib/rack/mount/route_set.rb:148
routing-filter (0.2.0) lib/routing_filter/adapters/rails_3.rb:68:in `call'
routing-filter (0.2.0) lib/routing_filter/adapters/rails_3.rb:68:in `recognize'
rack-mount (0.6.13) lib/rack/mount/route_set.rb:139:in `call'
actionpack (3.0.3) lib/action_dispatch/routing/route_set.rb:492:in `call'
i18n-missing_translations (0.0.1) lib/i18n/missing_translations.rb:26:in `call'
warden (0.10.7) lib/warden/manager.rb:35:in `call'
warden (0.10.7) lib/warden/manager.rb:34:in `catch'
warden (0.10.7) lib/warden/manager.rb:34:in `call'
actionpack (3.0.3)
lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
actionpack (3.0.3) lib/action_dispatch/middleware/head.rb:14:in `call'
rack (1.2.1) lib/rack/methodoverride.rb:24:in `call'
actionpack (3.0.3) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.0.3) lib/action_dispatch/middleware/flash.rb:182:in `call'
actionpack (3.0.3)
lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call'
actionpack (3.0.3) lib/action_dispatch/middleware/cookies.rb:295:in `call'
activerecord (3.0.3) lib/active_record/query_cache.rb:32:in `call'
activerecord (3.0.3)
lib/active_record/connection_adapters/abstract/query_cache.rb:28:in
`cache'
activerecord (3.0.3) lib/active_record/query_cache.rb:12:in `cache'
activerecord (3.0.3) lib/active_record/query_cache.rb:31:in `call'
activerecord (3.0.3)
lib/active_record/connection_adapters/abstract/connection_pool.rb:353:in
`call'
actionpack (3.0.3) lib/action_dispatch/middleware/callbacks.rb:46:in `call'
activesupport (3.0.3) lib/active_support/callbacks.rb:415:in
`_run_call_callbacks'
actionpack (3.0.3) lib/action_dispatch/middleware/callbacks.rb:44:in `call'
rack (1.2.1) lib/rack/sendfile.rb:107:in `call'
actionpack (3.0.3) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
actionpack (3.0.3)
lib/action_dispatch/middleware/show_exceptions.rb:46:in `call'
rack-cache-tags (0.0.6) lib/rack/cache/tags.rb:29:in `call'
rack-cache-purge (0.0.2) lib/rack/cache/purge/base.rb:14:in `call'
rack-cache (0.5.3) lib/rack/cache/context.rb:129:in `forward'
rack-cache (0.5.3) lib/rack/cache/context.rb:136:in `pass'
rack-cache (0.5.3) lib/rack/cache/context.rb:148:in `invalidate'
rack-cache (0.5.3) lib/rack/cache/context.rb:70:in `call!'
rack-cache (0.5.3) lib/rack/cache/context.rb:50:in `call'
railties (3.0.3) lib/rails/rack/logger.rb:13:in `call'
rack (1.2.1) lib/rack/runtime.rb:17:in `call'
activesupport (3.0.3)
lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.2.1) lib/rack/lock.rb:11:in `call'
rack (1.2.1) lib/rack/lock.rb:11:in `synchronize'
rack (1.2.1) lib/rack/lock.rb:11:in `call'
/usr/localadva-core (0.0.5) lib/adva/rack/static.rb:28:in `call'
actionpack (3.0.3) lib/action_dispatch/middleware/static.rb:30:in `call'
railties (3.0.3) lib/rails/application.rb:168:in `call'
railties (3.0.3) lib/rails/application.rb:77:in `send'
railties (3.0.3) lib/rails/application.rb:77:in `method_missing'
railties (3.0.3) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.2.1) lib/rack/content_length.rb:13:in `call'
rack (1.2.1) lib/rack/handler/webrick.rb:52:in `service'
/home/tim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/httpserver.rb:104:in
`service'
/home/tim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/httpserver.rb:65:in
`run'
/home/tim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/server.rb:173:in
`start_thread'
/home/tim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/server.rb:162:in
`start'
/home/tim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/server.rb:162:in
`start_thread'
/home/tim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/server.rb:95:in
`start'
/home/tim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/server.rb:92:in
`each'
/home/tim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/server.rb:92:in
`start'
/home/tim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/server.rb:23:in
`start'
/home/tim/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/1.8/webrick/server.rb:82:in
`start'
rack (1.2.1) lib/rack/handler/webrick.rb:13:in `run'
rack (1.2.1) lib/rack/server.rb:213:in `start'
railties (3.0.3) lib/rails/commands/server.rb:65:in `start'
railties (3.0.3) lib/rails/commands.rb:30
railties (3.0.3) lib/rails/commands.rb:27:in `tap'
railties (3.0.3) lib/rails/commands.rb:27
script/rails:6:in `require'
script/rails:6
Request
Parameters:
{"commit"=>"Create Site",
"authenticity_token"=>"NDdyZVBuBXBwSVcLIY9nNnQMXmp2eM5HiqNgMroRds4=",
"utf8"=>"\342\234\223",
"site"=>{"name"=>"tim.uckun.com",
"account_attributes"=>{"users_attributes"=>[{"password"=>"[FILTERED]",
"email"=>"ad...@admin.org"}]},
"title"=>"tim.uckun.com",
"host"=>"localhost:3000",
"sections_attributes"=>{"0"=>{"name"=>"Home",
"type"=>"Page"}}}}
I tried the rails 3.0.3 branch and I get this error
WARNING: unable to load thorfile
"/usr/local/home/tim/source/ruby/rails_sites/cms/adva-cms2/Thorfile":
Attempt to apply patch targeting version '2.0.4' of 'arel', but active
version is '2.0.6'
/home/tim/.rvm/gems/ruby-1.8.7-p249/gems/gem_patching-0.0.2/lib/gem_patching.rb:7:in
`patching'
/home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor/runner.rb:34:in
`method_missing': undefined method `start' for nil:NilClass
(NoMethodError)
from /home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor/task.rb:22:in
`send'
from /home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor/task.rb:22:in
`run'
from /home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor/task.rb:108:in
`run'
from /home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor/invocation.rb:118:in
`invoke_task'
from /home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor.rb:263:in
`dispatch'
from /home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor/base.rb:389:in
`start'
from /home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/bin/thor:6
from /home/tim/.rvm/gems/ruby-1.8.7-p249/bin/thor:19:in `load'
from /home/tim/.rvm/gems/ruby-1.8.7-p249/bin/thor:19
Master generates the app but it can't find the adva-core gem.
The develop branch generates the app but gives the error I mentioned
in my last email (and quoted below).
I copied the adva files to the same directory as the app as a quick fix. This has worked for me to find the gem.
Torsten
Is that on the master branch, developer branch or the rails 3.03 branch?
Which branch should we be using anyway? When I clone the app I get the
developer branch as being the default.
I realize that you've post a couple of more times, but I figured I'd
take a couple of steps back.
So, first to your error:
"/home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor/runner.rb:34:in
`method_missing': undefined method `start' for nil:NilClass
(NoMethodError)
from/home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor/task.rb:22:in
`send'
from/home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor/task.rb:22:in
`run'
from/home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor/task.rb:108:in
`run'
from/home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor/invocation.rb:118:in
`invoke_task'
from/home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor.rb:263:in
`dispatch'
from/home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor/base.rb:389:in
`start'
from/home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/bin/thor:6
from/home/tim/.rvm/gems/ruby-1.8.7-p249/bin/thor:19:in `load'
from/home/tim/.rvm/gems/ruby-1.8.7-p249/bin/thor:19"
I got this error when I didn't change this line in
/path/to/adva-cms2/Gemfile :
adva_cms = repository('adva-cms2', :source => :local)
to
adva_cms = repository('adva-cms2', :source => 'http://rubygems.org')
After making this change, I was able to run:
$ thor adva:app my_new_app --target .
without problems. I would go back to this point and follow the
instructions in the README again. Then if you get further errors, please
post the command that caused the error. If you really want to make
things easy for us, post some of the previous commands too, and then
post some of your system information.
Okay, good luck.
-- Chris
try changing this line in the adva-cms2 Gemfile:
adva_cms = repository('adva-cms2', :source => :local)
to
adva_cms = repository('adva-cms2', :source => 'http://rubygems.org')
You should use which ever branch is most comfortable for you. The master
branch represents that from with the last Gems were cut (i.e. adva-core,
adva-user, etc.). The develop branch represents cutting edge changes.
Hope that helps.
-- Chris
git clone git://github.com/svenfuchs/adva-cms2.git
cd adva-cms2/
git checkout master (was on develop)
vi Gemfile (make the change as stated in emails)
bundle install
thor adva:app adva_app --target ..
Causes error:
apply /home/tim/.rvm/gems/ruby-1.8.7-p249/gems/adva-core-0.0.5/lib/adva/generators/templates/app/app_template.rb
Could not find "/home/tim/.rvm/gems/ruby-1.8.7-p249/gems/lib/bundler/repository.rb"
in any of your source paths. Your current source paths are:
/home/tim/.rvm/gems/ruby-1.8.7-p249/gems/railties-3.0.3/lib/rails/generators/rails/app/templates
App exists. Let's try it...
cd ../adva_app
bundle install
rails s
localhost:3000 gives you the default rails index.html page.
Let's try the develop branch...
cd ..
rm -rf adva_app
cd adva_cms2
git checkout develop
vi Gemfile
bundle install
thor....
Same errors
apply /home/tim/.rvm/gems/ruby-1.8.7-p249/gems/adva-core-0.0.5/lib/adva/generators/templates/app/app_template.rb
Could not find "/home/tim/.rvm/gems/ruby-1.8.7-p249/gems/lib/bundler/repository.rb"
in any of your source paths. Your current source paths are:
/home/tim/.rvm/gems/ruby-1.8.7-p249/gems/railties-3.0.3/lib/rails/generators/rails/app/templates
Try the app. Same as before the default rails index.html.
Let's try rails 3.0.3 branch
git checkout rails-3.0.3
vi Gemfile
bundle install
...
Same story as above.
OK let's change the source back to local and see what happens.
vi gemfile
bundle install
WARNING: unable to load thorfile
"/usr/local/home/tim/source/ruby/rails_sites/cms/adva-cms2/Thorfile":
Attempt to apply patch targeting version '2.0.4' of 'arel', but active
version is '2.0.6'
/home/tim/.rvm/gems/ruby-1.8.7-p249/gems/gem_patching-0.0.2/lib/gem_patching.rb:7:in
`patching'
/home/tim/.rvm/gems/ruby-1.8.7-p249/gems/thor-0.14.6/lib/thor/runner.rb:34:in
`method_missing': undefined method `start' for nil:NilClass
(NoMethodError)
That didn't work. Let's try the develop branch...
git checkout develop
bundle install
thor ...
Yea no errors. Let's run the app.
cd ../adva_app
bundle install
rails s
The setup screen shows up. I put in "tim.uckun.com" as my name and I
get the error
super called outside of method
looks like it's in app/models/site.rb line 13
So I think that's every combination I can think of. Nothing gives me a
working adva app.
I hope this is helpful.
Cheers and happy new year.
So, here's my transcript:
[chrisf@turnstile Downloads]$ git clone
git://github.com/svenfuchs/adva-cms2.git
Cloning into adva-cms2...
remote: Counting objects: 13424, done.
remote: Compressing objects: 100% (4871/4871), done.
remote: Total 13424 (delta 7632), reused 13332 (delta 7592)
Receiving objects: 100% (13424/13424), 12.10 MiB | 238 KiB/s, done.
Resolving deltas: 100% (7632/7632), done.
[chrisf@turnstile Downloads]$ cd adva-cms2/
[chrisf@turnstile adva-cms2]$ git checkout master
Branch master set up to track remote branch master from origin.
Switched to a new branch 'master'
[chrisf@turnstile adva-cms2]$ bundle install #This should fail!!!
Fetching source index for http://rubygems.org/
Installing rake (0.8.7)
Installing RedCloth (4.2.3) with native extensions
Installing abstract (1.0.0)
Installing activesupport (3.0.3)
Installing builder (2.1.2)
Installing i18n (0.5.0)
Installing activemodel (3.0.3)
Installing erubis (2.6.6)
Installing rack (1.2.1)
Installing rack-mount (0.6.13)
Installing rack-test (0.5.6)
Installing tzinfo (0.3.23)
Installing actionpack (3.0.3)
Installing mime-types (1.16)
Installing polyglot (0.3.1)
Installing treetop (1.4.9)
Installing mail (2.2.13)
Installing actionmailer (3.0.3)
Installing arel (2.0.6)
Installing activerecord (3.0.3)
Installing activeresource (3.0.3)
Installing activesupport-slices (0.0.1)
Installing gem_patching (0.0.2)
Installing i18n-missing_translations (0.0.1)
Installing has_scope (0.5.0)
Installing responders (0.6.2)
Installing inherited_resources (1.1.2)
Installing inherited_resources_helpers (0.0.14)
Installing kronn-has_many_polymorphs (3.0.2)
Installing minimal (0.0.22)
Using bundler (1.0.7)
Installing thor (0.14.6)
Installing railties (3.0.3)
Installing rails (3.0.3)
Installing routing-filter (0.2.0)
Installing silence_log_tailer (0.0.1)
Installing simple_form (1.2.2)
Installing simple_nested_set (0.0.28)
Installing simple_slugs (0.0.8)
Installing simple_table (0.0.12)
Using adva-core (0.0.5) from source at adva-core
Installing truncate_html (0.4.0)
Using adva-blog (0.0.5) from source at adva-blog
Installing rack-cache (0.5.3)
Installing rack-cache-purge (0.0.2)
Installing rack-cache-tags (0.0.6)
Installing reference_tracking (0.0.4)
Using adva-cache (0.0.5) from source at adva-cache
Using adva-categories (0.0.5) from source at adva-categories
Installing rdiscount (1.6.5) with native extensions
Using adva-markup (0.0.5) from source at adva-markup
Installing nokogiri (1.4.4) with native extensions
Installing watchr (0.7)
Using adva-static (0.0.5) from source at adva-static
Installing bcrypt-ruby (2.1.3) with native extensions
Installing warden (0.10.7)
Installing devise (1.1.2)
Using adva-user (0.0.5) from source at adva-user
Installing columnize (0.3.2)
Installing configuration (1.2.0)
Installing diff-lcs (1.1.2)
Installing json (1.4.6) with native extensions
Installing term-ansicolor (1.0.5)
Installing gherkin (2.2.9) with native extensions
Installing cucumber (0.9.4)
Installing cucumber-rails (0.3.2)
Installing database_cleaner (0.5.2)
Installing factory_girl (1.3.2)
Installing fakefs (0.3.1)
Installing launchy (0.3.7)
Installing linecache (0.43) with native extensions
Installing mocha (0.9.10)
Installing ruby-debug-base (0.10.4) with native extensions
Installing ruby-debug (0.10.4)
Installing sqlite3-ruby (1.2.5) with native extensions
Installing test_declarative (0.0.5)
Installing webrat (0.7.2)
Your bundle is complete! It was installed into
/home/chrisf/.rvm/gems/ruby-1.8.7-p302
[chrisf@turnstile adva-cms2]$ #hmm...it worked?!?!.... and without
editing Gemfile
[chrisf@turnstile adva-cms2]$ #Okay, let's move on
[chrisf@turnstile adva-cms2]$ thor adva:app adva_app --target ..
Building application ...
exist
/home/chrisf/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/fileutils.rb:121:
warning: conflicting chdir during another chdir block
create README
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/mailers
create app/models
create app/views/layouts/application.html.erb
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/backtrace_silencers.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/secret_token.rb
create config/initializers/session_store.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create doc
create doc/README_FOR_APP
create lib
create lib/tasks
create lib/tasks/.gitkeep
create log
create log/server.log
create log/production.log
create log/development.log
create log/test.log
create public
create public/404.html
create public/422.html
create public/500.html
create public/favicon.ico
create public/index.html
create public/robots.txt
create public/images
create public/images/rails.png
create public/stylesheets
create public/stylesheets/.gitkeep
create public/javascripts
create public/javascripts/application.js
create public/javascripts/controls.js
create public/javascripts/dragdrop.js
create public/javascripts/effects.js
create public/javascripts/prototype.js
create public/javascripts/rails.js
create script
create script/rails
create test
create test/fixtures
create test/functional
create test/integration
create test/performance/browsing_test.rb
create test/test_helper.rb
create test/unit
create tmp
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create vendor/plugins
create vendor/plugins/.gitkeep
apply
/home/chrisf/Downloads/adva-cms2/adva-core/lib/adva/generators/templates/app/app_template.rb
create lib/bundler/repository.rb
force Gemfile
remove public/index.html
Loading environment ...
Installing adva engines ...
copy migration 20101109000000_adva_core_add_published_at_to_contents.rb
copy migration 20100415000001_adva_core_create_sites.rb
copy migration 20100415000003_adva_core_create_contents.rb
copy migration 20100415000000_adva_core_create_accounts.rb
copy migration 20100415000002_adva_core_create_sections.rb
copy migration 20100904224918_adva_cache_create_tables.rb
copy migration 20101012143413_adva_categories_create_tables.rb
copy migration 20101102111200_adva_categories_add_level_to_categories.rb
copy migration 20101007000500_adva_markup_add_columns.rb
copy migration 20100415000004_adva_cms_create_users.rb
Migrating database ...
== AdvaCoreCreateAccounts: migrating
=========================================
-- create_table(:accounts)
-> 0.0007s
== AdvaCoreCreateAccounts: migrated (0.0008s)
================================
== AdvaCoreCreateSites: migrating
============================================
-- create_table(:sites)
-> 0.0016s
== AdvaCoreCreateSites: migrated (0.0016s)
===================================
== AdvaCoreCreateSections: migrating
=========================================
-- create_table(:sections)
-> 0.0031s
== AdvaCoreCreateSections: migrated (0.0032s)
================================
== AdvaCoreCreateContents: migrating
=========================================
-- create_table(:contents)
-> 0.0015s
== AdvaCoreCreateContents: migrated (0.0016s)
================================
== AdvaCmsCreateUsers: migrating
=============================================
-- create_table(:users)
-> 0.0087s
== AdvaCmsCreateUsers: migrated (0.0088s)
====================================
== AdvaCacheCreateTables: migrating
==========================================
-- create_table(:cache_taggings, {:force=>true})
-> 0.0015s
== AdvaCacheCreateTables: migrated (0.0016s)
=================================
== AdvaMarkupAddColumns: migrating
===========================================
-- add_column(:contents, :filter, :string)
-> 0.0006s
-- add_column(:contents, :body_html, :text)
-> 0.0004s
== AdvaMarkupAddColumns: migrated (0.0012s)
==================================
== AdvaCategoriesCreateTables: migrating
=====================================
-- create_table(:categories)
-> 0.0013s
-- create_table(:categorizations)
-> 0.0007s
-- add_index(:categorizations, :category_id)
-> 0.0005s
-- add_index(:categorizations, :categorizable_id)
-> 0.0008s
== AdvaCategoriesCreateTables: migrated (0.0036s)
============================
== AdvaCategoriesAddLevelToCategories: migrating
=============================
-- add_column(:categories, :level, :integer, {:null=>false, :default=>0})
-> 0.0006s
== AdvaCategoriesAddLevelToCategories: migrated (0.0007s)
====================
== AdvaCoreAddPublishedAtToContents: migrating
===============================
-- add_column(:contents, :published_at, :datetime)
-> 0.0010s
== AdvaCoreAddPublishedAtToContents: migrated (0.0012s)
======================
[chrisf@turnstile adva-cms2]$# Also worked!?!?!!
[chrisf@turnstile adva-cms2]$ cat README.textile | grep -A 6 -E
'Generate a new app'
*Generate a new app and run it:*
bc. $ thor adva:app /home/user/path/to/app
$ cd /home/user/path/to/app
$ bundle install
$ rails s
[chrisf@turnstile adva-cms2]$ #okay, so we've generated the app...
[chrisf@turnstile adva-cms2]$ cd ../adva_app/ #let's go there
[chrisf@turnstile adva_app]$ bundle install #Okay, this should fail!!!
Fetching source index for http://rubygems.org/
Could not find gem 'adva-core (>= 0, runtime)' in source at ..
Source does not contain any versions of 'adva-core (>= 0, runtime)'
[chrisf@turnstile adva_app]$ #Great!!!
[chrisf@turnstile adva_app]$ vim Gemfile #Make recommended changes to
Gemfile
[chrisf@turnstile adva_app]$ cat Gemfile #Contents of Gemfile
require File.expand_path('../lib/bundler/repository', __FILE__)
source :rubygems
workspace '. ~/.projects ~/projects ~/Development/{projects,work}
~/.repositories'
adva_cms = repository('adva-cms2', :source => 'http://rubygems.org')
adva_cms.gem 'adva-core'
adva_cms.gem 'adva-blog'
adva_cms.gem 'adva-cache'
adva_cms.gem 'adva-categories'
adva_cms.gem 'adva-static'
adva_cms.gem 'adva-user'
adva_cms.gem 'adva-markup'
group :test do
gem 'sqlite3-ruby', '1.2.5'
gem 'cucumber', '0.9.4'
gem 'cucumber-rails', '0.3.2'
gem 'webrat', '0.7.2'
gem 'thor'
gem 'ruby-debug'
gem 'mocha'
gem 'fakefs', :require => 'fakefs/safe'
gem 'test_declarative'
gem 'database_cleaner', '0.5.2'
gem 'launchy'
gem 'factory_girl', '1.3.2'
end
[chrisf@turnstile adva_app]$ bundle install #Please work!!!! :)
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using RedCloth (4.2.3)
Using abstract (1.0.0)
Using activesupport (3.0.3)
Using builder (2.1.2)
Using i18n (0.5.0)
Using activemodel (3.0.3)
Using erubis (2.6.6)
Using rack (1.2.1)
Using rack-mount (0.6.13)
Using rack-test (0.5.6)
Using tzinfo (0.3.23)
Using actionpack (3.0.3)
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.9)
Using mail (2.2.13)
Using actionmailer (3.0.3)
Using arel (2.0.6)
Using activerecord (3.0.3)
Using activeresource (3.0.3)
Using activesupport-slices (0.0.1)
Using gem_patching (0.0.2)
Using i18n-missing_translations (0.0.1)
Using has_scope (0.5.0)
Using responders (0.6.2)
Using inherited_resources (1.1.2)
Using inherited_resources_helpers (0.0.14)
Using kronn-has_many_polymorphs (3.0.2)
Using minimal (0.0.22)
Using bundler (1.0.7)
Using thor (0.14.6)
Using railties (3.0.3)
Using rails (3.0.3)
Using routing-filter (0.2.0)
Using silence_log_tailer (0.0.1)
Using simple_form (1.2.2)
Using simple_nested_set (0.0.28)
Using simple_slugs (0.0.8)
Using simple_table (0.0.12)
Installing adva-core (0.0.5)
Using truncate_html (0.4.0)
Installing adva-blog (0.0.5)
Using rack-cache (0.5.3)
Using rack-cache-purge (0.0.2)
Using rack-cache-tags (0.0.6)
Using reference_tracking (0.0.4)
Installing adva-cache (0.0.5)
Installing adva-categories (0.0.5)
Using rdiscount (1.6.5)
Installing adva-markup (0.0.5)
Using nokogiri (1.4.4)
Using watchr (0.7)
Installing adva-static (0.0.5)
Using bcrypt-ruby (2.1.3)
Using warden (0.10.7)
Using devise (1.1.2)
Installing adva-user (0.0.5)
Using columnize (0.3.2)
Using configuration (1.2.0)
Using diff-lcs (1.1.2)
Using json (1.4.6)
Using term-ansicolor (1.0.5)
Using gherkin (2.2.9)
Using cucumber (0.9.4)
Using cucumber-rails (0.3.2)
Using database_cleaner (0.5.2)
Using factory_girl (1.3.2)
Using fakefs (0.3.1)
Using launchy (0.3.7)
Using linecache (0.43)
Using mocha (0.9.10)
Using ruby-debug-base (0.10.4)
Using ruby-debug (0.10.4)
Using sqlite3-ruby (1.2.5)
Using test_declarative (0.0.5)
Using webrat (0.7.2)
Your bundle is complete! It was installed into
/home/chrisf/.rvm/gems/ruby-1.8.7-p302
[chrisf@turnstile adva_app]$ # Great, it did work! Let's fire up the server.
[chrisf@turnstile adva_app]$ rails s
=> Booting WEBrick
=> Rails 3.0.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2011-01-01 12:32:49] INFO WEBrick 1.3.1
[2011-01-01 12:32:49] INFO ruby 1.8.7 (2010-08-16) [x86_64-linux]
[2011-01-01 12:32:50] INFO WEBrick::HTTPServer#start: pid=30723 port=3000
cache: [GET /] miss
Started GET "/" for 127.0.0.1 at Sat Jan 01 12:32:57 +0100 2011
SQL (0.4ms) SELECT COUNT(*) FROM "sites"
Site Load (0.2ms) SELECT "sites".* FROM "sites" WHERE ("sites"."host" =
'localhost:3000') LIMIT 1
CACHE (0.0ms) SELECT COUNT(*) FROM "sites"
CACHE (0.0ms) SELECT "sites".* FROM "sites" WHERE ("sites"."host" =
'localhost:3000') LIMIT 1
cache: [GET /installations/new] miss
Started GET "/installations/new" for 127.0.0.1 at Sat Jan 01 12:32:58
+0100 2011
SQL (0.1ms) SELECT COUNT(*) FROM "sites"
Site Load (0.1ms) SELECT "sites".* FROM "sites" WHERE ("sites"."host" =
'localhost:3000') LIMIT 1
CACHE (0.0ms) SELECT COUNT(*) FROM "sites"
CACHE (0.0ms) SELECT "sites".* FROM "sites" WHERE ("sites"."host" =
'localhost:3000') LIMIT 1
Processing by InstallationsController#new as HTML
CACHE (0.0ms) SELECT COUNT(*) FROM "sites"
CACHE (0.0ms) SELECT "sites".* FROM "sites" WHERE ("sites"."host" =
'localhost:3000') LIMIT 1
WARNING: Can't mass-assign protected attributes: type
Rendered
/home/chrisf/.rvm/gems/ruby-1.8.7-p302/gems/adva-core-0.0.5/app/views/installations/new.html.rb
within layouts/simple (100.5ms)
Completed 200 OK in 150ms (Views: 113.0ms | ActiveRecord: 0.3ms)
cache: [POST /installations] invalidate, pass
Started POST "/installations" for 127.0.0.1 at Sat Jan 01 12:33:24 +0100
2011
SQL (0.2ms) SELECT COUNT(*) FROM "sites"
Site Load (0.1ms) SELECT "sites".* FROM "sites" WHERE ("sites"."host" =
'localhost:3000') LIMIT 1
CACHE (0.0ms) SELECT COUNT(*) FROM "sites"
CACHE (0.0ms) SELECT "sites".* FROM "sites" WHERE ("sites"."host" =
'localhost:3000') LIMIT 1
Processing by InstallationsController#create as HTML
Parameters: {"commit"=>"Create Site",
"authenticity_token"=>"D2F0p4AkwZBZwE0NCCKeScqkWDZ+AomsSI0qlA8S+pk=",
"utf8"=>"✓", "site"=>{"name"=>"tim.uckun.com",
"sections_attributes"=>{"0"=>{"name"=>"Home", "type"=>"Page"}}}}
CACHE (0.0ms) SELECT COUNT(*) FROM "sites"
CACHE (0.0ms) SELECT "sites".* FROM "sites" WHERE ("sites"."host" =
'localhost:3000') LIMIT 1
WARNING: Can't mass-assign protected attributes: type
Site Load (0.2ms) SELECT "sites"."id" FROM "sites" WHERE ("sites"."host"
= 'localhost:3000') LIMIT 1
Section Load (0.2ms) SELECT "sections".* FROM "sections" WHERE
("sections"."site_id" IS NULL) AND ("sections"."slug" LIKE 'home%')
ORDER BY lft
** has_many_polymorphs: associating Category.categorizables
User Load (0.1ms) SELECT "users"."id" FROM "users" WHERE
(LOWER("users"."email") = LOWER('ad...@admin.org')) LIMIT 1
AREL (0.3ms) INSERT INTO "accounts" VALUES(NULL)
AREL (0.1ms) INSERT INTO "users" ("reset_password_token",
"confirmation_sent_at", "remember_created_at", "current_sign_in_ip",
"created_at", "encrypted_password", "remember_token", "email",
"confirmation_token", "last_sign_in_ip", "account_id", "roles",
"sign_in_count", "last_sign_in_at", "updated_at", "confirmed_at",
"current_sign_in_at", "password_salt") VALUES (NULL, NULL, NULL, NULL,
'2011-01-01 11:33:25.013064',
'$2a$10$rDjHBJoqAl0mD8oe10NDfenhGXt02fR2JGZ0MgB61V5eajwkU27wq', NULL,
'ad...@admin.org', NULL, NULL, 1, NULL, 0, NULL, '2011-01-01
11:33:25.013064', NULL, NULL, '$2a$10$rDjHBJoqAl0mD8oe10NDfe')
AREL (0.1ms) INSERT INTO "sites" ("title", "updated_at", "subtitle",
"host", "timezone", "account_id", "created_at", "name") VALUES
('tim.uckun.com', '2011-01-01 11:33:25.016226', '', 'localhost:3000',
NULL, 1, '2011-01-01 11:33:25.016226', 'tim.uckun.com')
SQL (0.2ms) SELECT MAX("sections"."rgt") AS max_id FROM "sections" WHERE
("sections"."site_id" = 1)
AREL (0.1ms) INSERT INTO "sections" ("parent_id", "created_at", "name",
"slug", "updated_at", "options", "path", "type", "lft", "level",
"site_id", "rgt") VALUES (NULL, '2011-01-01 11:33:25.019676', 'Home',
'home', '2011-01-01 11:33:25.019676', NULL, '', 'Page', 1, NULL, 1, 2)
AREL (0.3ms) UPDATE "sections" SET level = (SELECT COUNT("l"."id") FROM
"sections" "l" WHERE "l"."lft" < "sections"."lft" AND "l"."rgt" >
"sections"."rgt" AND ("l"."site_id" = 1)),path = (SELECT
GROUP_CONCAT(slug, '/') FROM "sections" "l" WHERE "l"."lft" <=
"sections"."lft" AND "l"."rgt" >= "sections"."rgt" AND ("l"."site_id" =
1)) WHERE ("sections"."site_id" = 1)
AREL (0.1ms) INSERT INTO "contents" ("published_at", "filter", "title",
"created_at", "site_id", "body", "slug", "section_id", "type",
"body_html", "updated_at") VALUES (NULL, NULL, 'Home', '2011-01-01
11:33:25.026517', 1, '', '', 1, 'Article', '', '2011-01-01 11:33:25.026517')
AREL (0.2ms) UPDATE "users" SET "roles" = NULL, "updated_at" =
'2011-01-01 11:33:25.048318', "confirmed_at" = '2011-01-01
11:33:25.048035' WHERE ("users"."id" = 1)
Redirected to http://localhost:3000/installations/1
Completed 302 Found in 540ms
cache: [GET /installations/1] miss
Started GET "/installations/1" for 127.0.0.1 at Sat Jan 01 12:33:25
+0100 2011
SQL (0.3ms) SELECT COUNT(*) FROM "sites"
Site Load (0.4ms) SELECT "sites".* FROM "sites" LIMIT 1
Section Load (0.6ms) SELECT "sections".* FROM "sections" WHERE
("sections".site_id = 1) AND ("sections"."parent_id" IS NULL) ORDER BY
lft LIMIT 1
CACHE (0.0ms) SELECT COUNT(*) FROM "sites"
CACHE (0.0ms) SELECT "sites".* FROM "sites" LIMIT 1
Section Load (0.7ms) SELECT "sections".* FROM "sections" WHERE
("sections".site_id = 1) ORDER BY lft
Section Load (0.3ms) SELECT "sections".* FROM "sections" WHERE
("sections"."site_id" = 1) AND ("sections"."rgt" = 0) ORDER BY lft LIMIT 1
Processing by InstallationsController#show as HTML
Parameters: {"id"=>"1"}
Site Load (0.5ms) SELECT "sites".* FROM "sites" WHERE ("sites"."id" = 1)
LIMIT 1
Rendered
/home/chrisf/.rvm/gems/ruby-1.8.7-p302/gems/adva-core-0.0.5/app/views/installations/show.html.rb
within layouts/simple (22.2ms)
Completed 200 OK in 53ms (Views: 46.9ms | ActiveRecord: 2.7ms)
Rack::Cache::Tags::Store::ActiveRecord::Tagging Load (0.8ms) SELECT
"cache_taggings".* FROM "cache_taggings" WHERE (url =
'http://localhost:3000/installations/1' AND tag IN ('site-1'))
AREL (0.3ms) INSERT INTO "cache_taggings" ("tag", "url") VALUES
('site-1', 'http://localhost:3000/installations/1')
cache: [GET /admin/sites/1] miss
Started GET "/admin/sites/1" for 127.0.0.1 at Sat Jan 01 12:33:35 +0100 2011
Processing by Admin::SitesController#show as HTML
Parameters: {"id"=>"1"}
Completed in 14ms
cache: [GET /user/sign_in?return_to=%2Fadmin%2Fsites%2F1] miss
Started GET "/user/sign_in?return_to=%2Fadmin%2Fsites%2F1" for 127.0.0.1
at Sat Jan 01 12:33:35 +0100 2011
SQL (0.3ms) SELECT COUNT(*) FROM "sites"
Site Load (0.4ms) SELECT "sites".* FROM "sites" LIMIT 1
Section Load (0.6ms) SELECT "sections".* FROM "sections" WHERE
("sections".site_id = 1) AND ("sections"."parent_id" IS NULL) ORDER BY
lft LIMIT 1
CACHE (0.0ms) SELECT COUNT(*) FROM "sites"
CACHE (0.0ms) SELECT "sites".* FROM "sites" LIMIT 1
Section Load (0.7ms) SELECT "sections".* FROM "sections" WHERE
("sections".site_id = 1) ORDER BY lft
Section Load (0.3ms) SELECT "sections".* FROM "sections" WHERE
("sections"."site_id" = 1) AND ("sections"."rgt" = 0) ORDER BY lft LIMIT 1
Processing by User::SessionsController#new as HTML
Parameters: {"return_to"=>"/admin/sites/1"}
Rendered
/home/chrisf/.rvm/gems/ruby-1.8.7-p302/gems/adva-user-0.0.5/app/views/user/sessions/new.html.rb
within layouts/user (50.0ms)
Completed 200 OK in 80ms (Views: 60.2ms | ActiveRecord: 3.3ms)
cache: [POST /user/sign_in] invalidate, pass
Started POST "/user/sign_in" for 127.0.0.1 at Sat Jan 01 12:33:57 +0100 2011
SQL (0.3ms) SELECT COUNT(*) FROM "sites"
Site Load (0.4ms) SELECT "sites".* FROM "sites" LIMIT 1
Section Load (0.6ms) SELECT "sections".* FROM "sections" WHERE
("sections".site_id = 1) AND ("sections"."parent_id" IS NULL) ORDER BY
lft LIMIT 1
CACHE (0.0ms) SELECT COUNT(*) FROM "sites"
CACHE (0.0ms) SELECT "sites".* FROM "sites" LIMIT 1
Section Load (0.7ms) SELECT "sections".* FROM "sections" WHERE
("sections".site_id = 1) ORDER BY lft
Section Load (0.3ms) SELECT "sections".* FROM "sections" WHERE
("sections"."site_id" = 1) AND ("sections"."rgt" = 0) ORDER BY lft LIMIT 1
Processing by User::SessionsController#create as HTML
Parameters: {"commit"=>"Sign in", "return_to"=>"/admin/sites/1",
"authenticity_token"=>"D2F0p4AkwZBZwE0NCCKeScqkWDZ+AomsSI0qlA8S+pk=",
"utf8"=>"✓", "user"=>{"remember_me"=>"0", "password"=>"[FILTERED]",
"email"=>"ad...@admin.org"}}
User Load (0.7ms) SELECT "users".* FROM "users" WHERE ("users"."email" =
'ad...@admin.org') LIMIT 1
AREL (0.4ms) UPDATE "users" SET "roles" = NULL, "current_sign_in_at" =
'2011-01-01 11:33:58.399460', "updated_at" = '2011-01-01
11:33:58.400393', "last_sign_in_ip" = '127.0.0.1', "current_sign_in_ip"
= '127.0.0.1', "last_sign_in_at" = '2011-01-01 11:33:58.399460',
"sign_in_count" = 1 WHERE ("users"."id" = 1)
Redirected to http://localhost:3000/admin/sites/1
Completed 302 Found in 235ms
cache: [GET /admin/sites/1] miss
Started GET "/admin/sites/1" for 127.0.0.1 at Sat Jan 01 12:33:58 +0100 2011
Processing by Admin::SitesController#show as HTML
Parameters: {"id"=>"1"}
User Load (0.7ms) SELECT "users".* FROM "users" WHERE ("users"."id" = 1)
LIMIT 1
Site Load (0.5ms) SELECT "sites".* FROM "sites" WHERE ("sites"."id" = 1)
LIMIT 1
Site Load (0.6ms) SELECT "sites".* FROM "sites"
Section Load (0.7ms) SELECT "sections".* FROM "sections" WHERE
("sections".site_id = 1) ORDER BY lft
Rendered
/home/chrisf/.rvm/gems/ruby-1.8.7-p302/gems/adva-core-0.0.5/app/views/layouts/admin/_top.rb
(152.8ms)
Rendered
/home/chrisf/.rvm/gems/ruby-1.8.7-p302/gems/adva-core-0.0.5/app/views/admin/sites/_menu.html.rb
(3.9ms)
Rendered
/home/chrisf/.rvm/gems/ruby-1.8.7-p302/gems/adva-core-0.0.5/app/views/layouts/admin/_header.rb
(287.3ms)
Rendered
/home/chrisf/.rvm/gems/ruby-1.8.7-p302/gems/adva-core-0.0.5/app/views/admin/sites/show.html.rb
within layouts/admin (318.0ms)
Completed 200 OK in 408ms (Views: 354.0ms | ActiveRecord: 2.5ms)
^C[2011-01-01 12:35:04] INFO going to shutdown ...
[2011-01-01 12:35:04] INFO WEBrick::HTTPServer#start done.
Exiting
Okay, that was the session, without errors. Sorry that it worked for me
but not you.
But in the end, you did get it working, until you got to the 'super
called outside of method' error. I'm pretty sure the problem here is
that you are using ruby-1.8.7-p249. I remember I had an issue similar to
this and found out that it has to do with a bug that was introduced in
the 249 patch to ruby-1.8.7. You should upgrade to ruby-1.8.7-p302.
A google search for "p249 patch-level method called outside of super"
should shed some light on things. Apparently it's issue 2537, but I
wasn't able to connect to the issue tracker, so I can't confirm this.
Okay, again, 'rvm install 1.8.7-p302; rvm use 1.8.7-p302; gem install
bundler' will get you to the point where my session started. I hope that
helps. Let me know.
-- Chris
[chrisf@turnstile adva-cms2]$ cd ../adva_app/
1. You ran the thor command with gem set to :local and then changed
the gemfile in the app to point to rubygems. During my run I was able
to successfully generate the app using the :local flag but not do a
bundle install.
2. Older version of ruby.
I changed to REE (I already had it installed) and was able to install
the app and get past the first screen.
I started fooling around a bit and ran into this error when attempting
to edit the home page
Template is missing
Missing template admin/pages/edit with {:locale=>[:en, :en],
:formats=>[:html], :handlers=>[:builder, :rjs, :erb, :rb, :rhtml,
:rxml]} in view paths
"/usr/local/home/tim/source/ruby/rails_sites/cms/adva_app/app/views",
"/usr/local/home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/adva-markup-0.0.5/app/views",
"/usr/local/home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/adva-user-0.0.5/app/views",
"/usr/local/home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/devise-1.1.2/app/views",
"/usr/local/home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/adva-static-0.0.5/app/views",
"/usr/local/home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/adva-categories-0.0.5/app/views",
"/usr/local/home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/adva-cache-0.0.5/app/views",
"/usr/local/home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/adva-blog-0.0.5/app/views",
"/usr/local/home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/adva-core-0.0.5/app/views"
I was able to add a blog and a blog post and add a section. If I go to
sites/1/pages/1 I can edit the page but there seems to be no way to
navigate to that URL from the screen.
I guess the next steps are to read the rest of the manual so I can
figure out how to add a wiki, how to change the admin password, how to
add pages, how to change the style etc.
I just wanted to follow up and let you (and potential readers of this
thread) know that the issue "super called outside of method" error that
you reported is indeed reproducible in ruby 1.8.7-p248 and p249. As far
as I know, the next patch-level release of ruby was p299, where
everything seems to function again.
If you're interested, here is a link to the report as well a short
script that reproduces the error:
http://redmine.ruby-lang.org/issues/show/2537
-- Chris