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
how can i add new features in this ?
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
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
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
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'
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.)
$ 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 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 ?
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 :)
Hi guys,
When I try to run the rake tasks, I get this error every time: "uninitialized constant BaseController::OutputFilter"
Any ideas?
Cheers,
Galen
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
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.
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.
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 !
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
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.