GithubHelp home page GithubHelp logo

svenfuchs / adva_cms Goto Github PK

View Code? Open in Web Editor NEW
489.0 489.0 74.0 17.14 MB

cutting edge cms, blog, wiki, forum ...

Home Page: http://adva-cms.org

License: MIT License

Ruby 25.49% CSS 3.63% JavaScript 66.35% PHP 1.15% ColdFusion 1.62% Perl 0.45% ASP 0.56% Lasso 0.23% Python 0.50%

adva_cms's People

Contributors

benedikt avatar bigeasy avatar clemens avatar diasjorge avatar ingoweiss avatar iuzt avatar james2m avatar joeleaver avatar joshmh avatar kronn avatar m3talsmith avatar mitchlloyd avatar mseppae avatar nachokb avatar smbrant avatar theinterned avatar tomk32 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adva_cms's Issues

rake aborted on ubuntu

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.

Translate failing under Rails 2.3.8

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:intranslation'
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:int'

Without fully understanding everything, the problem goes away if I change line 20 above:
20: result ||= default # locale, default, options

Proper decode of cookie values

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 :)

Menu is not missing constant SectionsMenu error

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 ?

Missing model User

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 !

"wrong number of arguments (2 for 0)" error when running on Ruby 1.9

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.)

no such file to load -- ruby_pants

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'

[adva_newsletter] "no such file to load -- addressable/uri" on rake adva:install engines=adva_newsletter

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.