svenfuchs / adva_cms Goto Github PK
View Code? Open in Web Editor NEWcutting edge cms, blog, wiki, forum ...
Home Page: http://adva-cms.org
License: MIT License
cutting edge cms, blog, wiki, forum ...
Home Page: http://adva-cms.org
License: MIT License
Welcome to adva-cms =================== adva-cms is a cutting edge open source application platform based on Ruby on Rails and Rails Engines. Different from others, adva-cms lives in vendor directory and keeps your main app directory clean and dandy. So you can reclaim app directory and use it only for your own application files. adva-cms makes it extensible: you can only pick those engines/features you really need for your application and omit the rest. All engines are designed to work together seamlessly, so the whole platform feels much more consistent for similar but separate Rails applications. Please check out /doc directory and our site http://adva-cms.org for more info. Installation: Release 0.3.2 =========================== Required: Rails >= 2.3.4, ImageMagick for image handling # install Rails >= 2.3.4 gems if you don't have them already sudo gem install rails --version 2.3.4 # install and setup adva-cms using a template rails my-app -m https://github.com/svenfuchs/adva_cms/raw/master/templates/adva-cms.0.3.2.rb # there's no step 3 cd my-app ruby script/server open http://localhost:3000 You should see adva-cms installation screen. Fill out the form and you're started, enjoy! You can install additional engines and plugins through rake adva:install. See below for more about that. *Important note for using adva-cms with Rails >= 2.3.4* You *must* use Rails' old routing recognition/generation mode in order for adva-cms to work correctly: # config/initializers/new_rails_defaults.rb # either comment out the following line or set it to true ActionController::Routing.generate_best_match = false Installation: Edge version using rails template =============================================== Required: Rails >= 2.3.4, ImageMagick for image handling # install Rails >= 2.3.4 gems if you don't have them already sudo gem install rails --version 2.3.4 # install and setup adva-cms using a template rails my-app -m https://github.com/svenfuchs/adva_cms/raw/master/templates/adva-cms.master.rb # there's no step 3 cd my-app ruby script/server open http://localhost:3000 You should see adva-cms installation screen. Fill out the form and you're started, enjoy! You can install additional engines and plugins through rake adva:install. See below for more about that. Installation: Edge version manually =================================== (this is basically what the template does...) Required: Rails >= 2.3.4 or newer, ImageMagick for image handling # Create your app rails my-app cd my-app rm public/index.html # Prepare the config/environment.rb and remove the public/index.html # in config/environment.rb make sure you have: require File.join(File.dirname(__FILE__), 'boot') require File.join(File.dirname(__FILE__), '../vendor/adva/engines/adva_cms/boot') # this line # You *must* use Rails' old routing recognition/generation mode in order for adva-cms to work correctly: # in config/initializers/new_rails_defaults.rb set: ActionController::Routing.generate_best_match = true # Clone the adva-cms ( this might take a bit, grab a coffee meanwhile :) ) git clone git://github.com/svenfuchs/adva_cms.git vendor/adva # or use: git submodule add ... # Install the core engines and copy the assets rake adva:install:core -R vendor/adva/engines/adva_cms/lib/tasks # install adva-cms to vendor/plugins/ rake adva:assets:install # symlinks plugin assets to public/ # Start the server ruby script/server open http://localhost:3000 You should see adva-cms installation screen. Fill out the form and you're started, enjoy! Installing/Uninstalling adva-cms engines and plugins ==================================================== You can install/uninstall adva-cms engines and plugins by using a set of rake tasks. Installation simply works by symlinking (copying on Windows) to vendor/plugins. There are the following tasks/subtasks: rake adva:install:all rake adva:install:core rake adva:install rake adva:uninstall:all rake adva:uninstall:core rake adva:uninstall For each of these tasks you can specify the option except and give it a list of engine/plugin names that should be excluded from the install/ uninstall task. E.g. rake adva:install:all except=adva_themes,adva_wiki rake adva:uninstall:all except=adva_themes,adva_wiki For the tasks adva:install and adva:uninstall one can specify the options engines and plugins and give it a list of engine/plugin names that should be included to the task. E.g. rake adva:install engines=adva_themes,adva_wiki plugins=adva_url_history rake adva:uninstall engines=adva_themes,adva_wiki plugins=adva_url_history (Incidentally, for the task adva:install:core one can specify the plugins option in the same way and thus install all core engines plus certain plugins.) For both the engines and plugins options one can specify the keyword "all" which then expands to all available engines and plugins respectively. Thus, these are equivalent: rake adva:install:all rake adva:install engines=all plugins=all When the "all" keyword is used with the uninstall task this only applies to all engines and plugins except the adva-cms core engines. To uninstall these you can still simply delete the symlinks (directories on Windows) from vendor/plugins. NOTE please note that right now assets not installed to public/ when engines are installed and they are not removed from public/ when engines are uninstalled. So after you've installed additional engines you'll most probably want to install the assets to public: rake adva:assets:install Configuration ============= You can change adva-cms configuration by including an initializer to your application and overwriting things that adva-cms sets as defaults. See the initializers in adva-cms engines/plugins, e.g. in vendor/plugins/adva_cms/config/initializers/* Running tests ============= The test-suite is intended to run on full install in an otherwise clean rails-app. Running tests for adva-cms version 0.1.2 or newer: $ rake adva:install:all # to prepare the database, all engines are needed $ sudo gem install mocha # We depend on this gem in some of our tests $ rake db:test:clone # Clones from your development database to test database $ vendor/adva/script/test_prepare_database # Prepares database $ vendor/adva/script/test vendor/adva/engines # Runs all tests Further options: $ vendor/adva/script/test vendor/adva/engines -p # Prepares the database and runs all adva-cms tests $ DO_NOT_REPORT_ASAP=true vendor/adva/script/test vendor/adva/engines # run all tests but only report errors in the summary Please check out /doc directory for high level overview about adva-cms. Installing Selenium =================== $ (sudo) gem install Selenium selenium-client Unfortunately the jar that the Selenium gem (version 1.1.14) comes with does not work with Firefox 3. So we have to get the latest jar from the Selenium-RC site: Download the Selenium RC Beta 2: http://seleniumhq.org/download/ Once you have extracted the download we copy: selenium-remote-control-1.0-beta-2/selenium-server-1.0-beta-2/selenium-server.jar Over the jar that was installed with the Selenium gem: GEM_INSTALL_DIR/Selenium-1.1.14/lib/selenium/openqa/selenium-server.jar.txt # yes, with .txt in the end Development =========== Please report bugs to Lighthouse: http://artweb-design.lighthouseapp.com/projects/13992-adva_cms/overview Git repository: http://github.com/svenfuchs/adva_cms/tree/master adva-cms mailing list: http://groups.google.com/group/adva-cms adva-cms irc: irc://irc.freenode.net#adva-cms Developers ========== Sven Fuchs Marko Seppä Clemens Kofler Matthias Viehweger Christopher Floess Raphala Wrede Johannes Strampe Priit Tamboom Thomas R. Koll Joshua Harvey Luca Guidi Mark Schlusnus
rails my-app -m https://github.com/svenfuchs/adva_cms/raw/master/templates/adva-cms.0.3.2.rb
Should this be:
rails new my-app -m https://github.com/svenfuchs/adva_cms/raw/master/templates/adva-cms.0.3.2.rb
I have tried the two installations alternatives:
The "using a template" one returns a "non git repository" error.
And the "manually" alternative, give me the same error already reported by Shree in the Google discussion group.
http://groups.google.com/group/adva-cms/browse_thread/thread/42361bc4373a5e52
Apparently the installation procedure is not properly tested...
Unfortunately I'm a newbie in Rails, and don't know how to help.
MarcRic
Just a suggestion. Was my first time investigating this project and I had to google to find your home page, ruby-toolbox doesn't list it either
I got this error when i tried to go to http://localhost:3002/admin/sites/1:
ActionView::TemplateError (Menu is not missing constant SectionsMenu!) on line #16 of vendor/plugins/adva_cms/app/views/layouts/admin.html.erb: 13: <%= yield :head %> 14: 15: 16: <%= @menu.build(self).root.render(:id => 'top') %> 17: <%= render :partial => 'admin/shared/header' %> 18:19: <%= yield :form if @content_for_form %>
config/initializers/menus.rb:
menu :left, :class => 'main' do item :sites, :action => :index, :resource => :site if Site.multi_sites_enabled if @site && [email protected]_record? item :overview, :action => :show, :resource => @site item :sections, :action => :index, :resource => [@site, :section], :type => Menu::SectionsMenu, :populate => lambda { @site.sections } item :comments, :action => :index, :resource => [@site, :comment] if Rails.plugin?(:adva_comments) item :newsletters, :action => :index, :resource => [@site, "Adva::Newsletter"] if Rails.plugin?(:adva_newsletter) item :assets, :action => :index, :resource => [@site, :asset] if Rails.plugin?(:adva_assets) end end
This is when I use the tip commit from your master branch plus my Ruby 1.9 fixes (since I refuse to use ancient 1.8 and it didn't seem to make sense to ask you to pull from a fork of tag/0.3.0):
> ./script/about About your application's environment Ruby version 1.9.1 (x86_64-linux) RubyGems version 1.3.5 Rack version 1.0 Rails version 2.3.5 Active Record version 2.3.5 Active Resource version 2.3.5 Action Mailer version 2.3.5 Active Support version 2.3.5 Application root /home/tyler/Web_sites/cms/adva Environment development Database adapter sqlite3 Database schema version 20090720132900 d398435 2010-03-03 20:07:00 -0800 Tyler Rick - Ruby 1.9 compatibility fix: In Ruby 1.9, we can no longer do require 'sha1' and SHA1.sha1 is renamed to Digest::SHA1.hexdigest. 73fb747 2010-03-03 20:05:28 -0800 Tyler Rick - Ruby 1.9 compatibility fix: Added "encoding: utf-8" to avoid getting this error: 96f07d8 2010-03-03 19:59:12 -0800 Tyler Rick - Ruby 1.9 compatibility fix: When called from vendor/plugins/routing-filter/lib/routing_filter/pagination.rb, this proc is expected to have 2 args. Changing it from lambda to proc causes Ruby a0e8515 2010-03-02 15:51:18 +0100 Clemens Kofler - add missing indexes for page caching tables 8783f41 2010-03-01 17:14:30 +0100 Clemens Kofler - try to prevent race conditions for cached pages/references
Anyone know a solution? Is this related to https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2283-unnecessary-exception-raised-in-asdependenciesload_missing_constant ?
Hi,
I was got this error when trying to install adva_cms .
Using ruby - 1.8.6 , rails - 2.3.4 (also had 2.3.5) and all gems on Ubuntu .
Checking out files: 100% (2977/2977), done.
executing git checkout -b tag/0.3.0 0.3.0 from /home/srinath/adva_cms/vendor/adva
Switched to a new branch "tag/0.3.0"
rake adva:install:core -R vendor/adva/engines/adva_cms/lib/tasks
rake aborted!
undefined method `unix?' for #Rake::Application:0xb7d72e38
(See full trace by running task with --trace)
rake adva:assets:install
rake aborted!
Don't know how to build task 'adva:assets:install'
(See full trace by running task with --trace)
applied http://github.com/svenfuchs/adva_cms/raw/master/templates/adva-cms.0.3.0.rb
srinath@srinath-laptop:~$
Could you please tell how to solve this issue and run , i'm interested to run this cms for my project .
thanks.
Hi guys,
When I try to run the rake tasks, I get this error every time: "uninitialized constant BaseController::OutputFilter"
Any ideas?
Cheers,
Galen
When I go to http://localhost:3002/, I get this error:
wrong number of arguments (2 for 0) vendor/plugins/adva_cms/vendor/plugins/routing-filter/lib/routing_filter/pagination.rb:7:in `around_recognize' vendor/plugins/adva_cms/vendor/plugins/routing-filter/lib/routing_filter/base.rb:15:in `run' vendor/plugins/adva_cms/vendor/plugins/routing-filter/lib/routing_filter.rb:12:in `run' vendor/plugins/adva_cms/vendor/plugins/routing-filter/lib/routing_filter.rb:57:in `recognize_path_with_filtering' /var/lib/gems/1.9.1/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:441:in `recognize' /var/lib/gems/1.9.1/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:436:in `call'
I don't get that error when I change script/server to use ruby1.8:
-#!/usr/bin/env ruby +#!/usr/bin/env ruby1.8
(But that is not an option for me.)
how can i add new features in this ?
$ rails app_name -m http://github.com/svenfuchs/adva_cms/raw/master/templates/adva-cms.0.3.0.rb
...
Switched to a new branch 'tag/0.3.0'
rake adva:install:core -R vendor/adva/engines/adva_cms/lib/tasks
rake aborted!
no such file to load -- action_mailer
I'm seeing scopeactiverecordattributespage in place of field labels all over the place. Which is irritating as I can't use the forms without knowing what the fields refer to.
Anyone else got this problem?
Ta
John Small
Hello,
I managed to install adva on windows but when I try to create the site and account I get the following error:
The following models could not be created: User.
Could you please tell me whats causing this?
I have Ruby 1.8.6, Rails 2.3.5
Thank you !
When doing a:
rake adva:install engines=adva_newsletter
The rake will fail with "no such file to load -- addressable/uri". There is a missing gem "addressable" that should be integrated somehow. This is important as it trips up a simple adva:install:all besides the obvious single engine install. This also trips an adva:install plugins=all . The simple answer is to install the gem locally, but this fails to bring in the ease and nature of keeping engines easily installable and removable. Perhaps we should think about a hook that checks each engines environment.rb for required engines, installing them, before installing the engine.
When rails went from 2.3.5 => 2.3.8, activesupport's i18n library was bumped:
activesupport-2.3.5/lib/active_support/vendor/i18n-0.1.3
=>
activesupport-2.3.8/lib/active_support/vendor/i18n-0.3.7
This has revealed what I think is a bad typo in
engines/adva_cms/vendor/plugins/globalize2/lib/globalize/backend/static.rb:20
12:def translate(locale, key, options = {})
13: result, default, fallback = nil, options.delete(:default), nil
14: I18n.fallbacks[locale].each do |fallback|
15: begin
16: result = super(fallback, key, options) and break
17: rescue I18n::MissingTranslationData
18: end
19: end
20: result ||= default locale, default, options
The last line makes no sense to me. I think it isn't reached in 2.3.5 but is in 2.3.8
The exception is:
vendor/plugins/adva_cms/vendor/plugins/globalize2/lib/globalize/backend/static.rb:47:in []' vendor/plugins/adva_cms/vendor/plugins/globalize2/lib/globalize/backend/static.rb:47:in
translation'
vendor/plugins/adva_cms/vendor/plugins/globalize2/lib/globalize/backend/static.rb:23:in translate' /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/vendor/i18n-0.3.7/i18n.rb:237:in
t'
Without fully understanding everything, the problem goes away if I change line 20 above:
20: result ||= default # locale, default, options
this can be fixed by changing
config.plugin_gem 'rubypants', :version => '~> 0.2.0', :lib => 'ruby_pants'
to
config.plugin_gem 'rubypants', :version => '~> 0.2.0', :lib => 'rubypants'
Ok, I'm new to the adva CMS so it took me some time to figure this out. But since my last name is Aßmann it really bothered me. :)
in adva_cms/engines/adva_cms/public/javascripts/adva_cms/application.js at line 4 you try to unescape the values from a cookie. It seems Rails uses URI encode for values stored in cookies so you need to call decodeURIComponent instead of unescape.
Regards
Florian Aßmann !(Florian AÃ�mann :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.