hope you had a great holiday season. We took some time off, but here's
the link to the latest adva-cms2 release.
http://adva-cms.org/2011/1/17/adva-cms2-0-0-6-the-new-year-release
As always, the repository is here:
https://github.com/svenfuchs/adva-cms2
Happy New Year.
-- Chris
It's me again.
I rushed out and tried it. Like the last time I changed the gemfile to
point to rubygems.org
Everythiing installed OK but running rails server gives the following error
=> 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
Exiting
/home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/gem_patching-0.0.2/lib/gem_patching.rb:7:in
`patching': Attempt to apply patch targeting version '2.0.6' of
'arel', but active version is '2.0.7' (RuntimeError)
from /usr/local/home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/adva-core-0.0.6/lib/patches/arel_in_subquery.rb:4
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in
`require'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in
`require'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in
`load_dependency'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in
`new_constants_in'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in
`load_dependency'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in
`require'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/adva-core-0.0.6/lib/adva/engine.rb:24:in
`require_patches'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/adva-core-0.0.6/lib/adva/engine.rb:24:in
`each'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/adva-core-0.0.6/lib/adva/engine.rb:24:in
`require_patches'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/adva-core-0.0.6/lib/adva/engine.rb:14
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/railties-3.0.3/lib/rails/initializable.rb:25:in
`instance_exec'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/railties-3.0.3/lib/rails/initializable.rb:25:in
`run'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/railties-3.0.3/lib/rails/initializable.rb:50:in
`run_initializers'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/railties-3.0.3/lib/rails/initializable.rb:49:in
`each'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/railties-3.0.3/lib/rails/initializable.rb:49:in
`run_initializers'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/railties-3.0.3/lib/rails/application.rb:134:in
`initialize!'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/railties-3.0.3/lib/rails/application.rb:77:in
`send'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/railties-3.0.3/lib/rails/application.rb:77:in
`method_missing'
from /usr/local/home/tim/source/ruby/rails_sites/cms/adva_app/config/environment.rb:5
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in
`require'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in
`require'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in
`load_dependency'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in
`new_constants_in'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in
`load_dependency'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in
`require'
from /usr/local/home/tim/source/ruby/rails_sites/cms/adva_app/config.ru:3
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/rack-1.2.1/lib/rack/builder.rb:46:in
`instance_eval'
from /home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/rack-1.2.1/lib/rack/builder.rb:46:in
`initialize'
from /usr/local/home/tim/source/ruby/rails_sites/cms/adva_app/config.ru:1:in
`new'
from /usr/local/home/tim/source/ruby/rails_sites/cms/adva_app/config.ru:1
I tried installing arel 2.0.6 and using bundle exec but it didn't help.
Sorry to be the bearer of bad news.
in adva-core/lib/patches/arel_in_subquery.rb change the 2.0.6 at the top
to 2.0.7. That did the trick for me, but it goes on the assumption that
your Gemfile in your adva-cms2 root directory still uses your local
adva-cms2 repository for the gems, i.e.:
workspace '. ~/.projects ~/projects ~/Development/{projects,work}
~/.repositories /some/path/to/Tim_Uckuns/home'
adva_cms = repository('adva-cms2', :source => :local)
-- Chris
Ok I did that.
>
> workspace '. ~/.projects ~/projects ~/Development/{projects,work}
> ~/.repositories /some/path/to/Tim_Uckuns/home'
> adva_cms = repository('adva-cms2', :source => :local)
>
This does not work for me. It gives the error
Could not find gem 'adva-core (>= 0, runtime)' in source at ..
Source does not contain any versions of 'adva-core (>= 0, runtime)'
I have to change it to 'http://rubygems.org'
In order for it to run
when I make the changes above and then run rails I get the first
screen asking you for the name of the site. I enter a name, select
page and I get the following error
undefined method `as' for #<Arel::Table:0xa8d1da0>
the full stack trace is here. Looks like a problem with simple_nested_set
simple_nested_set (0.0.28) lib/simple_nested_set/nested_set.rb:137:in
`denormalize_level_query'
simple_nested_set (0.0.28) lib/simple_nested_set/nested_set.rb:60:in
`denormalize!'
simple_nested_set (0.0.28) lib/simple_nested_set/nested_set.rb:48:in `save!'
simple_nested_set (0.0.28) lib/simple_nested_set/act_macro.rb:16:in
`_callback_after_342'
activesupport (3.0.3) lib/active_support/callbacks.rb:430: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_sections'
activesupport (3.0.3) lib/active_support/callbacks.rb:415: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:423: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.6) app/models/site.rb:14:in `install'
adva-core (0.0.6)
lib/core_ext/rails/active_record/skip_callbacks.rb:28:in
`skip_callbacks'
/usr/localadva-core (0.0.6) app/models/site.rb:13:in `install'
/usr/localadva-core (0.0.6)
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:in `action'
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: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.6) 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/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/httpserver.rb:104:in
`service'
/home/tim/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/httpserver.rb:65:in
`run'
/home/tim/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:173:in
`start_thread'
/home/tim/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:162:in
`start'
/home/tim/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:162:in
`start_thread'
/home/tim/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:95:in
`start'
/home/tim/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:92:in
`each'
/home/tim/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:92:in
`start'
/home/tim/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:23:in
`start'
/home/tim/.rvm/rubies/ree-1.8.7-2010.02/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"=>"RqofrU+4jKrOqGFq8cthycVoidXdNW/ktYKsQoxv+WE=",
"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"}}}}
What's happening here, is that instead of getting the adva-cms2 gems
from rubygems, you're letting bundler know that the gems can be built
from the repository located on your local machine. If you can make it
work like this, it's a better way to do it because you can then make
changes to any of the adva-cms components (like patching a specific
version of arel ;) and then test them in a new application built from
your changes.
-- Chris
--
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.
This worked. I also did this to my Gemfile
workspace File.expand_path(File.dirname(__FILE__)+ '/..')
I was able to install all the gems and run the app.
I added a blog (I see no option for a wiki) and then went to go and
edit the home page and got this error
Template is missing
Missing template admin/pages/edit with {:formats=>[:html],
:handlers=>[:rb, :erb, :builder, :rjs, :rhtml, :rxml], :locale=>[:en,
:en]} 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.6/app/views",
"/usr/local/home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/adva-user-0.0.6/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.6/app/views",
"/usr/local/home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/adva-categories-0.0.6/app/views",
"/usr/local/home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/adva-cache-0.0.6/app/views",
"/usr/local/home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/adva-blog-0.0.6/app/views",
"/usr/local/home/tim/.rvm/gems/ree-1.8.7-2010.02/gems/adva-core-0.0.6/app/views"
Notice that I had changed the gemfile to pull from rubygems.org.
Anyway it's way past my bed time so that's all I can do today.
I hope this report has been useful to you guys.
BTW is there a guide to customization anywhere? Like how to I change
the look and feel and such? The wiki is pretty sparse.