Git Product home page Git Product logo

communityengine's People

Contributors

alwold avatar axelwal avatar bborn avatar bpaul avatar braincomb avatar dpogue avatar fritzek avatar harmsk avatar isuda avatar jahart avatar jak4 avatar jdutil avatar jrgifford avatar jsh-c avatar jtgeibel avatar juafrlo avatar mattherick avatar morhekil avatar nerakdon avatar omwine avatar pkartaviy avatar polar avatar rmoriz avatar robban avatar robsonfs avatar robu avatar sachiotomita avatar simianlogic avatar titib avatar xsanet 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  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

communityengine's Issues

Rails 3 Prototype on Production Mode Fails

Rails3 branch: It seems that when running application that is hosting the engine on production mode, Prototype does not work. Probably "sprockets" mixes things up. For example, the Ajax.Updater on footer_content throws the error a is not a function (as seen by firebug)

Creating forum topic fails

Creating a new forum topic results in the following error message:

Can't mass-assign protected attributes: sticky, locked, body

I think this is because in topics_controller.rb a topic is created passing the params hash to new (line 53):

@topic  = @forum.topics.new(params[:topic])

However, in topic.rb the only attribute declared attr_accessible is topic

Moreover, an sb_post instance is created by again passing params[:topic] (line 55):

@post   = @topic.sb_posts.new(params[:topic])

This looks fishy to me because sb_post does not have the same attributes as topic. In fact, my local install fails with error message

unknown attribute: title

If I add this:

params[:topic].delete("sticky")
params[:topic].delete("locked")
params[:topic].delete("title")

and include the attributes sticky, locked, and body in attr_accessible a new forum topic can be created.

I am new to RoR and Ruby - Perhaps I am just missing something.

Regards,
GJL

Rails 3: community_engine.js isn't precompiled

I was trying to run in production environment and faced this issue.

Evironment:

  • Rails 3.1 (Rails 3 branch_
  • Ruby 1.9.2 (tried ruby 1.8.7, REE as well)
  • RAILS_ENV=production

Steps to reproduce:

  • Install application following steps described in README.
  • Run rake assets:precompile
  • Start server ( tried nginx and webrick)
  • Try to visit any page

Backtrace:

Started GET "/popular" for 127.0.0.1 at 2011-10-07 00:02:21 +0300
  Processing by PostsController#popular as HTML
Rendered /home/blake/.rvm/gems/ruby-1.9.2-p290/bundler/gems/communityengine-7cd06b919d13/app/views/shared/_box.html.haml (2.1ms)
Rendered /home/blake/.rvm/gems/ruby-1.9.2-p290/bundler/gems/communityengine-7cd06b919d13/app/views/shared/_box.html.haml (0.2ms)
Rendered /home/blake/.rvm/gems/ruby-1.9.2-p290/bundler/gems/communityengine-7cd06b919d13/app/views/posts/_post.html.haml (0.0ms)
Rendered /home/blake/.rvm/gems/ruby-1.9.2-p290/bundler/gems/communityengine-7cd06b919d13/app/views/shared/_box.html.haml (0.2ms)
Rendered /home/blake/.rvm/gems/ruby-1.9.2-p290/bundler/gems/communityengine-7cd06b919d13/app/views/posts/popular.html.haml within layouts/application (73.5ms)
Rendered /home/blake/.rvm/gems/ruby-1.9.2-p290/bundler/gems/communityengine-7cd06b919d13/app/views/shared/_scripts_and_styles.html.haml (3.1ms)
Completed 500 Internal Server Error in 383ms

ActionView::Template::Error (community_engine.js isn't precompiled):
    1: =javascript_include_tag 'community_engine'
    2: =stylesheet_link_tag 'community_engine'
    3: 
    4: = include_tiny_mce_if_needed


Rendered /home/blake/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.2ms)
Rendered /home/blake/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.6ms)
Rendered /home/blake/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (8.9ms)

Guesses

Looks like CE's assets which are located in gem is not compiled. I've tried to compile them manualy but failed.

tiny_mce file attachment problem on rails3 branch.

Ruby 1.9.3-rc1 Rails 3.1.0 CentOS 5.7 and recently using CE rails3 branch

I tested tiny_mce file attached for browser Chrome, Safari, IE8 on development mode.

first file, attached enable. but second file, all browser do not attached in tiny_mce editor form.

exactly. Chrome, Safari are always problem. but IE8 some case done.

Please check it.

tiny_mce html source view

Could not locate the following plugins: white_list (LoadError)

I get this LoadError after trying to install CE (rails 2.3.2) Edge (tried the git and the tar-version)
All required passes as described in the documentation have been succesfully completed.

$ script/generate plugin_migration
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/plugin/loader.rb:184:in `ensure_all_registered_plugins_are_loaded!': Could not locate the following plugins: white_list (LoadError)

Please could you help me with this?

SMTPFatalError

All test pass on my instllation, but when I create a new user ( Processing UsersController#create ) I get a sintax error :

Net::SMTPFatalError (555 5.5.2 Syntax error. 31sm16036019vws.11):
...

vendor/plugins/community_engine/app/models/user.rb:330:in `deliver_signup_notification'

vendor/plugins/community_engine/app/controllers/users_controller.rb:110:in `create'

...

...

Rendering /var/rails/communityengine/public/500.html (500 Internal Server Error)

( commit 4eee7e6 )
bye Luca

Rails 3

I am planning to use CE for the next project.
The only thing is that I would like to use rails 3, thought it is still in beta. I understand, that lots of work need to be done to adopt CE to rails 3, but at some point we need to get started...

Do you have any plans for upgrading? Do you see any pitfals?

I surely will actively contribute to this/

rails3 - related tags don't take taggable_type into account

If you have the following

Clipping with id 1 tagged with "clippingtag"
Photo with id1 tagged with "phototag"

Calling related_tags on "clippingtag" will give you "phototag" .

Fixed the test so that it fails there (mixed into my pull request for fix of issue 35), however I was not sure on the best way to fix the issue.

Photo albums feature not working

It seems that you cannot create photo albums and assign photos to them, this works very unhandy and feels imcomplete, ive been working on a solution but to ruby newby still to fix this, perhaps a good idea to complete this feature for the photoalbums to a working solution?

more ar-extensions incompatibility

ar-extensions somehow (through sanitize_sql_by_way_of_duck_typing) ends up calling the to_sql method defined by the plugin ez_where on Hash with a parameter which is an array of string, whereas this to_sql method expects a String.
Maybe more of a problem with ar-extensions which shouldn't be duck typing so agressively, however it prevents from running the migrations to install community engine when you have ar-extensions as a gem dependency in your app.

Unable to override login field length

Is there a way to override the login field length?

I've done this in my user model:

class User < ActiveRecord::Base
  require_from_ce 'models/user'

  acts_as_authentic do |c|
    c.validates_length_of_login_field_options :minimum => 2
  end
end

I've also tried:

c.merge_validates_length_of_login_field_options :minimum => 2

However, neither of these changes work; the login field still requires a minimum of 5 characters.

Is there something special that needs to be done to force your own options when using require_from_ce ?

After rake community_engine:install:migrations this error is rendered in Terminal

Sass is in the process of being separated from Haml,
and will no longer be bundled at all in Haml 3.2.0.
Please install the 'sass' gem if you want to use Sass.

rake aborted!
uninitialized constant ActionView::Helpers::AssetTagHelper::AssetPaths::Mutex

(See full trace by running task with --trace)

Anyone have a solution to this issue?

The application crashes when you enter in the fields 'tags' characters other than US-ASCII

For blog:
Rendered vendor/cache/ruby/1.9.1/gems/community_engine-2.0.0.beta2/app/views/posts/show.html.haml within layouts/application (67.5ms)
Completed 500 Internal Server Error in 225ms

ActionView::Template::Error (invalid byte sequence in US-ASCII):
Extracted source (around line #52):
49: - unless @post.tags.empty?
50: %ul.tags
51: - @post.tags.each do |t|
52: %li=link_to( t.name, tag_url(t), :rel => 'tag')
53: / entry-content
54: / ends hentry
55: -box :class => 'hfeed comments', :id => 'comments' do

For forum:
Rendered vendor/cache/ruby/1.9.1/gems/community_engine-2.0.0.beta2/app/views/shared/_footer_content.html.haml (252.4ms)
Completed 500 Internal Server Error in 423ms

ActionView::Template::Error (invalid byte sequence in US-ASCII):
9: -box do
10: %h3=:tags.l
11: - tag_cloud @popular_tags, %w(nube1 nube2 nube3 nube4 nube5) do |tag, css_class|
12: = link_to tag.name, tag_path(URI.escape(tag.name, /[/.?#]/)), :class => css_class
13: %h6.all=link_to :all_tags.l, tags_path

You passed :lib as an option for gem 'desert', but it is invalid.

i tried install community engine.
problem: You passed :lib as an option for gem 'desert', but it is invalid.

my desert gem: desert (0.5.4)
rails 3.2.3

install log:

home@home-desktop:~$ rails new wbce -m https://raw.github.com/bborn/communityengine/edge/community_engine_setup_template.rb
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/images/rails.png
create app/assets/javascripts/application.js
create app/assets/stylesheets/application.css
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 app/mailers/.gitkeep
create app/models/.gitkeep
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/initializers/wrap_parameters.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 lib/assets
create lib/assets/.gitkeep
create log
create log/.gitkeep
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 script
create script/rails
create test/fixtures
create test/fixtures/.gitkeep
create test/functional
create test/functional/.gitkeep
create test/integration
create test/integration/.gitkeep
create test/unit
create test/unit/.gitkeep
create test/performance/browsing_test.rb
create test/test_helper.rb
create tmp/cache
create tmp/cache/assets
create vendor/assets/javascripts
create vendor/assets/javascripts/.gitkeep
create vendor/assets/stylesheets
create vendor/assets/stylesheets/.gitkeep
create vendor/plugins
create vendor/plugins/.gitkeep
apply https://raw.github.com/bborn/communityengine/edge/community_engine_setup_template.rb
Please enter the application's name: WBCE
run rm public/index.html from "."
run git init from "."
Initialized empty Git repository in /home/home/wbce/.git/
run git add . from "."
run touch tmp/.gitignore log/.gitignore vendor/.gitignore from "."
run find . -type d -empty | grep -v "vendor" | grep -v ".git" | grep -v "tmp" | xargs -I xxx touch xxx/.gitignore from "."
conflict .gitignore
Overwrite /home/home/wbce/.gitignore? (enter "h" for help) [Ynaqdh]
force .gitignore
gemfile desert
gemfile rmagick
gemfile hpricot
gemfile htmlentities
gemfile haml
gemfile aws-s3
gemfile calendar_date_select
gemfile ri_cal
gemfile authlogic
gemfile searchlogic
gemfile rakismet
rake gems:install
[sudo] password for home:
You passed :lib as an option for gem 'desert', but it is invalid.
plugin community_engine
Initialized empty Git repository in /home/home/wbce/vendor/plugins/community_engine/.git/
remote: Counting objects: 17261, done.
remote: Compressing objects: 100% (6043/6043), done.
remote: Total 17261 (delta 11405), reused 16199 (delta 10653)
Receiving objects: 100% (17261/17261), 6.05 MiB | 333 KiB/s, done.
Resolving deltas: 100% (11405/11405), done.
run git submodule init from "."
Submodule 'vendor/plugins/community_engine' (git://github.com/bborn/communityengine.git) registered for path 'vendor/plugins/community_engine'
run git submodule update from "."
[CE SETUP] Checking out the edge branch

     run    git checkout --track -b edge origin/edge from "./vendor/plugins/community_engine"

Branch edge set up to track remote branch edge from origin.
Switched to a new branch 'edge'
route map.routes_from_plugin :community_engine
[CE SETUP] Modifying your environment.rb and environments files to work with CE

    gsub    config/environment.rb
  append    config/environment.rb

[CE SETUP] Modifying environment files ...

Please enter the url where you plan to deploy this app (use 'example.com' for now if you don't know yet):
create config/application.yml
generate plugin_migration
You passed :lib as an option for gem 'desert', but it is invalid.
rake db:create:all
You passed :lib as an option for gem 'desert', but it is invalid.
rake db:migrate
You passed :lib as an option for gem 'desert', but it is invalid.
capify
run git add . from "."
run git commit -a -m 'Initial commit' from "."
[master (root-commit) efde59c] Initial commit
38 files changed, 870 insertions(+), 0 deletions(-)
create mode 100644 .gitignore
create mode 100644 .gitmodules
create mode 100644 Gemfile
create mode 100644 README.rdoc
create mode 100644 Rakefile
create mode 100644 app/assets/images/rails.png
create mode 100644 app/assets/javascripts/application.js
create mode 100644 app/assets/stylesheets/application.css
create mode 100644 app/controllers/application_controller.rb
create mode 100644 app/helpers/application_helper.rb
create mode 100644 app/mailers/.gitkeep
create mode 100644 app/models/.gitkeep
create mode 100644 app/views/layouts/application.html.erb
create mode 100644 config.ru
create mode 100644 config/application.rb
create mode 100644 config/application.yml
create mode 100644 config/boot.rb
create mode 100644 config/database.yml
create mode 100644 config/environment.rb
create mode 100644 config/environments/development.rb
create mode 100644 config/environments/production.rb
create mode 100644 config/environments/test.rb
create mode 100644 config/initializers/backtrace_silencers.rb
create mode 100644 config/initializers/inflections.rb
create mode 100644 config/initializers/mime_types.rb
create mode 100644 config/initializers/secret_token.rb
create mode 100644 config/initializers/session_store.rb
create mode 100644 config/initializers/wrap_parameters.rb
create mode 100644 config/locales/en.yml
create mode 100644 config/routes.rb
create mode 100644 db/seeds.rb
create mode 100644 doc/README_FOR_APP
create mode 100644 lib/assets/.gitkeep
create mode 100644 lib/tasks/.gitkeep
create mode 100644 log/.gitignore
create mode 100644 log/.gitkeep
create mode 100644 public/404.html
create mode 100644 public/422.html
create mode 100644 public/500.html
create mode 100644 public/favicon.ico
create mode 100644 public/robots.txt
create mode 100755 script/rails
create mode 100644 test/fixtures/.gitkeep
create mode 100644 test/functional/.gitkeep
create mode 100644 test/integration/.gitkeep
create mode 100644 test/performance/browsing_test.rb
create mode 100644 test/test_helper.rb
create mode 100644 test/unit/.gitkeep
create mode 100644 tmp/.gitignore
create mode 100644 vendor/.gitignore
create mode 100644 vendor/assets/javascripts/.gitkeep
create mode 100644 vendor/assets/stylesheets/.gitkeep
create mode 100644 vendor/plugins/.gitkeep
create mode 160000 vendor/plugins/community_engine
SUCCESS!
Next, you should probably run rake test and rake community_engine:test and make sure all tests pass.
run bundle install
You passed :lib as an option for gem 'desert', but it is invalid.
home@home-desktop:~$

I cannot migrate db.Is this windows os issue!!

rake community_engine:install:migrations
I run this command and was ok all migration files got copied giving me warning

WARNING: SimpleCov is activated, but you're not running Ruby 1.9+ - no coverage analysis will happen
WARNING: Global access to Rake DSL methods is deprecated. Please include
... Rake::DSL into classes and modules which use the Rake DSL methods.
WARNING: DSL method Eventify::Application#task called at C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/railties-3.1.0.beta1/lib/rails/application.rb:187:in `initialize_tasks'
WARNING: Global access to Rake DSL methods is deprecated. Please include
... Rake::DSL into classes and modules which use the Rake DSL methods.
WARNING: DSL method CommunityEngine::Engine#namespace called at C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/railties-3.1.0.beta1/lib/rails/engine.rb:550
WARNING: DSL method CommunityEngine::Engine#namespace called at C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/railties-3.1.0.beta1/lib/rails/engine.rb:551
WARNING: DSL method CommunityEngine::Engine#desc called at C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/railties-3.1.0.beta1/lib/rails/engine.rb:552
WARNING: DSL method CommunityEngine::Engine#task called at C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/railties-3.1.0.beta1/lib/rails/engine.rb:553
WARNING: Global access to Rake DSL methods is deprecated. Please include
... Rake::DSL into classes and modules which use the Rake DSL methods.
WARNING: DSL method Kaminari::Engine#namespace called at C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/railties-3.1.0.beta1/lib/rails/engine.rb:550
WARNING: DSL method Kaminari::Engine#namespace called at C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/railties-3.1.0.beta1/lib/rails/engine.rb:551
WARNING: DSL method Kaminari::Engine#desc called at C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/railties-3.1.0.beta1/lib/rails/engine.rb:552
WARNING: DSL method Kaminari::Engine#task called at C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/railties-3.1.0.beta1/lib/rails/engine.rb:553
WARNING: Global access to Rake DSL methods is deprecated. Please include
... Rake::DSL into classes and modules which use the Rake DSL methods.
WARNING: DSL method PrototypeRails::Engine#namespace called at C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/railties-3.1.0.beta1/lib/rails/engine.rb:550
WARNING: DSL method PrototypeRails::Engine#namespace called at C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/railties-3.1.0.beta1/lib/rails/engine.rb:551
WARNING: DSL method PrototypeRails::Engine#desc called at C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/railties-3.1.0.beta1/lib/rails/engine.rb:552
WARNING: DSL method PrototypeRails::Engine#task called at C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/railties-3.1.0.beta1/lib/rails/engine.rb:553

And I ran this command : rake db:migrate : and rake aborted!!

undefined method `debug_rjs=' for ActionView::Base:Class

Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
I'm on windows!!

CE requests rails 3.1.2?

I have rails 3.1.3 in my app as said in the documentation. But when i run
bundle install --binstubs

i get the following:

Fetching gem metadata from http://rubygems.org/........
Fetching gem metadata from http://rubygems.org/..
Bundler could not find compatible versions for gem "rails":
In Gemfile:
community_engine (>= 0) ruby depends on
rails (= 3.1.2) ruby

rails (3.1.3)

Heroku deploy fails due to missing assets

Using the rails3 branch from the GitHub repo, I've built an app and deployed to Heroku.

Though the app runs successfully in development mode locally, it fails with an error when deployed to Heroku.

Heroku reports:

ActionView::Template::Error (community_engine.js isn't precompiled)

when the engine default application layout template is rendered.

The error is introduced by the lines:

javascript_include_tag 'community_engine'

stylesheet_link_tag 'community_engine'

Rails3 gem version issue

I built a fresh Rails 3.1.3 app with
rails new myapp -d postgresql

Then tried adding to the Gemfile
gem 'community_engine'

And then
bundle install --binstubs

When I got the error message:
Bundler could not find compatible versions for gem "rails":
In Gemfile:
community_engine (>= 0) ruby depends on
rails (= 3.1.2) ruby

rails (3.1.3)

Resolved by downgrading to Rails 3.1.2

Error when trying bin/rake community_engine:install:migrations

Here is the trace

rake aborted!
uninitialized constant Tag
/Users/dc/.rvm/gems/ruby-1.9.3-p0@communityengine/gems/community_engine-2.0.0.beta2/lib/tag_hacks.rb:1:in `<top (required)>'
/Users/dc/.rvm/gems/ruby-1.9.3-p0@communityengine/gems/community_engine-2.0.0.beta2/lib/community_engine.rb:32:in `<top (required)>'
/Users/dc/.rvm/gems/ruby-1.9.3-p0@communityengine/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require'
/Users/dc/.rvm/gems/ruby-1.9.3-p0@communityengine/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
/Users/dc/.rvm/gems/ruby-1.9.3-p0@communityengine/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `each'
/Users/dc/.rvm/gems/ruby-1.9.3-p0@communityengine/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `block in require'
/Users/dc/.rvm/gems/ruby-1.9.3-p0@communityengine/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `each'
/Users/dc/.rvm/gems/ruby-1.9.3-p0@communityengine/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `require'
/Users/dc/.rvm/gems/ruby-1.9.3-p0@communityengine/gems/bundler-1.0.21/lib/bundler.rb:122:in `require'
/Users/dc/rails_projects/communityengine/config/application.rb:7:in `<top (required)>'
/Users/dc/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/dc/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/dc/rails_projects/communityengine/Rakefile:5:in `<top (required)>'
/Users/dc/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load'
/Users/dc/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/Users/dc/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile'
/Users/dc/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `block in load_rakefile'
/Users/dc/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/dc/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
/Users/dc/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `block in run'
/Users/dc/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/dc/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/dc/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/Users/dc/.rvm/gems/ruby-1.9.3-p0@global/bin/rake:19:in `load'
/Users/dc/.rvm/gems/ruby-1.9.3-p0@global/bin/rake:19:in `<main>'

Cleanup of the code several references to non used features

There is several features in the code like vendor and skills used on several of your CE sites but are not used in the CE itself, would it be an idea to OR remove those from the CE opensource version OR make them available as options that can be set in the application.yml config file?

community engine and ar-extensions don't play nice with each other

having ar-extensions as a gem dependency prevents from running ./script/generate plugin_migration
it breaks in this method (line 22 to 25 of init.rb of the plugin):
def migrations
migrations = Dir[migration_path+"/.rb"]
migrations.map { |p| File.basename(p).match(/0
(\d+)_/)[1].to_i }.sort
end

the gem has a db/migrate/generic_schema.rb so it chokes on the [1] after the match

Error after logging in via facebook

After the user enters the facebook credentials, and the user is being saved, I'm getting this error. Any one else run into this?

FriendlyId::BlankError (FriendlyId::BlankError):
friendly_id (3.3.3.0) lib/friendly_id/slug_string.rb:20:in validate_for!' friendly_id (3.3.3.0) lib/friendly_id/slugged.rb:86:inslug_text'
friendly_id (3.3.3.0) lib/friendly_id/active_record_adapter/slugged_model.rb:54:in build_a_slug' activesupport (3.2.0) lib/active_support/callbacks.rb:407:in_run__1866366995516369625__save__782223221508049009__callbacks'
activesupport (3.2.0) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.0) lib/active_support/callbacks.rb:385:in_run_save_callbacks'
activesupport (3.2.0) lib/active_support/callbacks.rb:81:in run_callbacks' activerecord (3.2.0) lib/active_record/callbacks.rb:264:increate_or_update'
activerecord (3.2.0) lib/active_record/persistence.rb:84:in save' activerecord (3.2.0) lib/active_record/validations.rb:50:insave'
activerecord (3.2.0) lib/active_record/attribute_methods/dirty.rb:22:in save' activerecord (3.2.0) lib/active_record/transactions.rb:241:inblock (2 levels) in save'
activerecord (3.2.0) lib/active_record/transactions.rb:295:in block in with_transaction_returning_status' activerecord (3.2.0) lib/active_record/connection_adapters/abstract/database_statements.rb:190:intransaction'
activerecord (3.2.0) lib/active_record/transactions.rb:208:in transaction' activerecord (3.2.0) lib/active_record/transactions.rb:293:inwith_transaction_returning_status'
activerecord (3.2.0) lib/active_record/transactions.rb:241:in block in save' activerecord (3.2.0) lib/active_record/transactions.rb:252:inrollback_active_record_state!'
activerecord (3.2.0) lib/active_record/transactions.rb:240:in save' /Users/gajeev/.rvm/gems/ruby-1.9.2-p290/bundler/gems/communityengine-bc367c7116fd/app/models/user.rb:435:infind_or_create_from_authorization'
/Users/gajeev/.rvm/gems/ruby-1.9.2-p290/bundler/gems/communityengine-bc367c7116fd/app/models/authorization.rb:35:in find_or_create_or_associate_user' /Users/gajeev/.rvm/gems/ruby-1.9.2-p290/bundler/gems/communityengine-bc367c7116fd/app/models/authorization.rb:21:inblock in create_from_hash'

Does CE run with rails 2.3.2?

As soon as I change the routes.rb - I get an error.

scott@ubuntuServer:/var/rails/www$ script/generate plugin_migration
/usr/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/builder.rb:159:in build': undefined method[]' for :community_engine:Symbol (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/route_set.rb:308:in add_route' from /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/route_set.rb:316:inadd_named_route'

Remove dependency on rack 1.3.5

The newest version of rack is 1.4.1 (released January 23, 2012).

Rack 1.3.6 gets installed when Rails 3.1.3 is installed.

The file community_engine.gemspec specifies a hard dependency on rack 1.3.5:

s.add_dependency(%q<rack>, ["= 1.3.5"])

Perhaps this could be more optimistic?

s.add_dependency(%q<rack>, [">= 1.3.5"])

As a workaround, to install CommunityEngine on Rails 3.1.3, I had to do this:

$ gem install rack --version=1.3.5

$ gem uninstall rack --version=1.3.6

and then:

$ bundle update

Thanks!

Cannot install rails3 branch

When trying to install Community Engine in Rails 3.1.3 as indicated in the README.markdown file, I get an error saying that I can only install Community Engine in Rails 3.1.2.

When I try to install it in Rails 3.1.2, I get the following error:

[21H43m13s WEST] Rolando: rolando@rolando-desktop:~/teste/community/community$ sudo bundle install --binstubs
Fetching source index for http://rubygems.org/
Bundler could not find compatible versions for gem "arel":
In Gemfile:
community_engine (>= 0) ruby depends on
arel ( = 2.2.1) ruby

rails ( = 3.1.2) ruby depends on
  arel (2.2.3)

Even when I did a "gem install arel 2.2.1" I get the same error when trying to install Community Engine.

I don't have a lot of experience with Rails and its ecosystem, so I might be doing something wrong, although in this case I simply followed the steps described in the README file.

Problem with date_selecte: can't convert symbol into string

Hey guys!
I hope you can help me.

My locale is set to de-DE.
I get the following error while opening my rails app in the browser:
www.mycommunity.com/singup

[BEGIN]
TypeError in Users#new

Showing /usr/local/lib/ruby/gems/1.9.1/bundler/gems/communityengine-8b58293213d7/app/views/users/new.html.haml where line #41 raised:

can't convert Symbol into String

Extracted source (around line #41):

38: =:birthday.l
39: :
40: %em=:required_you_must_be_at_least_years_old_to_sign_up.l_with_args(:min_age => configatron.min_age)
41: = date_select :user, :birthday
42:
43: -if configatron.require_captcha_on_signup
44: .right{:style => 'margin-top:2em;'}= recaptcha_tags
[END]

I tried those :order workaround i've found on google but that does't seem to solve the problem.
When I set the locale to 'en' it works like a charm.

Rails 3: Recaptcha Errors

I tried to track this down...

I've added my Recaptcha keys to application_config.rb
configatron.require_captcha_on_signup = true
configatron.recaptcha_pub_key = '_...'
configatron.recaptcha_priv_key = '
_...'

However, when rendering the views you'll get this error: Input error: k: Format of site key was invalid
which isn't surprising given that in the source there's this: <script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=#<Configatron::Store:0x7f757add7628>&error=expression"></script>

So I created my own config/initializers/recaptcha_constants.rb and now everything is working just fine!

It seems like there is a problem with the initialization order or something... but I couldn't quite figure it out.

rake aborted! unitialized constant tag

I have gem version 1.8.11, Ruby version 1.9.3.
I am executing the Rake command below and am receiving the "...tag" error. I read the logs and Issue #37 did not correct this for me.

C:\Rptmgr>rake community_engine:install:migrations
rake aborted!
uninitialized constant Tag

(See full trace by running task with --trace)

C:\Rptmgr>rake community_engine:install:migrations --trace
rake aborted!
uninitialized constant Tag
C:/Ruby193/lib/ruby/gems/1.9.1/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:206:in const_missing_from_s3_library' C:/Ruby193/lib/ruby/gems/1.9.1/gems/community_engine-2.0.0.beta2/lib/tag_hacks.rb:1:in<top (required)>'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/community_engine-2.0.0.beta2/lib/community_engine.rb:32:in <top (required)>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:inrequire'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:inblock (2 levels) in require' C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:ineach'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:inblock in require' C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:ineach'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:inrequire' C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler.rb:122:inrequire'

Permission denied - Errno::EACCES

Hi, I'm getting this error since I checked in my project into svn. Maybe the problem lies in rails_asset_extensions.rb in the line "FileUtils.cp_r(asset_path, "#{RAILS_ROOT}/public/#{EnginesHelper.plugin_assets_directory}/#{plugin}/.", :preserve => true)". I think CE is trying to copy the .svn-folders along with the plugin-assets into the public-folder of the app(?) and fails with "Permission denied". Maybe it would work if the Line excludes svn-specific folders?

(Setting self.autoload_assets = false can fix the problem for the moment.)

adding a :verbose => true to FileUtils.cp_r gives:
cp -rp /Users/username/languageschool/vendor/plugins/community_engine/public/charts /Users/username/languageschool/public/plugin_assets/community_engine/.

greetz, flo.

TRACE:


=> Booting Mongrel
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
/usr/local/lib/ruby/1.8/fileutils.rb:1262:in `initialize': Permission denied - /Users/username/languageschool/public/plugin_assets/community_engine/./charts/.svn/all-wcprops (Errno::EACCES)
    from /usr/local/lib/ruby/1.8/fileutils.rb:1262:in `open'
    from /usr/local/lib/ruby/1.8/fileutils.rb:1262:in `copy_file'
    from /usr/local/lib/ruby/1.8/fileutils.rb:1261:in `open'
    from /usr/local/lib/ruby/1.8/fileutils.rb:1261:in `copy_file'
    from /usr/local/lib/ruby/1.8/fileutils.rb:1231:in `copy'
    from /usr/local/lib/ruby/1.8/fileutils.rb:451:in `copy_entry'
    from /usr/local/lib/ruby/1.8/fileutils.rb:1324:in `traverse'
    from /usr/local/lib/ruby/1.8/fileutils.rb:448:in `copy_entry'
    from /usr/local/lib/ruby/1.8/fileutils.rb:423:in `cp_r'
    from /usr/local/lib/ruby/1.8/fileutils.rb:1395:in `fu_each_src_dest'
    from /usr/local/lib/ruby/1.8/fileutils.rb:1409:in `fu_each_src_dest0'
    from /usr/local/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest'
    from /usr/local/lib/ruby/1.8/fileutils.rb:422:in `cp_r'
    from /Users/username/languageschool/vendor/plugins/community_engine/lib/rails_asset_extensions.rb:19:in `propagate'
    from /Users/username/languageschool/vendor/plugins/community_engine/lib/rails_asset_extensions.rb:18:in `each'
    from /Users/username/languageschool/vendor/plugins/community_engine/lib/rails_asset_extensions.rb:18:in `propagate'
    from /Users/username/languageschool/vendor/plugins/community_engine/lib/rails_asset_extensions.rb:16:in `each'
    from /Users/username/languageschool/vendor/plugins/community_engine/lib/rails_asset_extensions.rb:16:in `propagate'
    from /Users/username/languageschool/vendor/plugins/community_engine/lib/rails_asset_extensions.rb:132
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require_without_desert'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require_without_desert'
    from /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.0/lib/desert/ruby/object.rb:8:in `require'
    from /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.0/lib/desert/ruby/object.rb:28:in `__each_matching_file'
    from /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.0/lib/desert/ruby/object.rb:27:in `each'
    from /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.0/lib/desert/ruby/object.rb:27:in `__each_matching_file'
    from /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.0/lib/desert/ruby/object.rb:7:in `require'
    from /Users/username/languageschool/vendor/plugins/community_engine/lib/community_engine.rb:42
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require_without_desert'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require_without_desert'
    from /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.0/lib/desert/ruby/object.rb:8:in `require'
    from /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.0/lib/desert/ruby/object.rb:28:in `__each_matching_file'
    from /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.0/lib/desert/ruby/object.rb:27:in `each'
    from /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.0/lib/desert/ruby/object.rb:27:in `__each_matching_file'
    from /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.0/lib/desert/ruby/object.rb:7:in `require'
    from /Users/username/languageschool/vendor/plugins/community_engine/init.rb:37:in `evaluate_init_rb'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/plugin.rb:146:in `evaluate_init_rb'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/plugin.rb:142:in `evaluate_init_rb'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/plugin.rb:48:in `load_without_desert'
    from /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.0/lib/desert/rails/2.0.0/plugin.rb:16:in `load'
    from /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.0/lib/desert/manager.rb:45:in `register_plugin'
    from /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.0/lib/desert/manager.rb:11:in `__send__'
    from /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.0/lib/desert/manager.rb:11:in `method_missing'
    from /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.0/lib/desert/rails/2.0.0/plugin.rb:15:in `load'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/plugin/loader.rb:38:in `load_plugins'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/plugin/loader.rb:37:in `each'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/plugin/loader.rb:37:in `load_plugins'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:348:in `load_plugins'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:163:in `process'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `send'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `run'
    from /Users/username/languageschool/config/environment.rb:11
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
    from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb:84
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from script/server:3

rails3 branch installing error

After typing:

$ bin/rake community_engine:install:migrations

i got error

rake aborted!
uninitialized constant Tag

With --trace:

rake aborted!
uninitialized constant Tag
~/.rvm/gems/ruby-1.9.2-p290@project1/gems/community_engine-2.0.0.beta2/lib/tag_hacks.rb:1:in `top (required)'
... and many more lines with "top (required)"

ruby-1.9.2-p290 on Debian 6

Problem installing CE

Hi.

I'm using ruby 1.9.2, and rails 3.2.3., 3.1.1.
I'm installing CE based on this link: https://github.com/bborn/communityengine/tree/rails3

  1. When i download the source code, some files are missing, including Gemfile and gemspec.
  2. I'm stucked in the 1st step:
    Copy the following into your Gemfile:

gem 'community_engine'

When I type bundle install --binstubs, 'could not locate Gemfile' appeared.

Then, I tried to make a Gemfile using notepad. I put gem 'community_engine' in it and run cmd bundle install --binstubs. 'Could not locate gemfile' appeared again.

Next, i replace gem 'community_engine' with gem 'community_engine' , :git => 'https://github.com/bborn/communityengine.git', :branch => 'rails3' and run cmd. Same thing appeared.

Can anyone help me please? This is urgent.

Rake Aborted! Don't know how to build task 'community_engine:install:migrations'

Keep getting the following error and not sure how to go about fixing it:

"/xxxxxxx/xxxxxx/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task_manager.rb:49:in []' /xxxxxxx/xxxxxx/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:115:ininvoke_task'
/xxxxxxx/xxxxxx/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:94:in block (2 levels) in top_level' /xxxxxxx/xxxxxx/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:94:ineach'
/xxxxxxx/xxxxxx/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:94:in block in top_level' /xxxxxxx/xxxxxx/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:133:instandard_exception_handling'
/xxxxxxx/xxxxxx/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:88:in top_level' /xxxxxxx/xxxxxx/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:66:inblock in run'
/xxxxxxx/xxxxxx/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:133:in standard_exception_handling' /xxxxxxx/xxxxxx/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:63:inrun'
/xxxxxxx/xxxxxx/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/bin/rake:33:in <top (required)>' bin/rake:16:inload'
bin/rake:16:in `

' "

Admit that it doesn't look directly related to Community_Engine, but having trouble wading thru all of the noise on StackOverflow and other sources.

So if someone could help out a n00b here, would appreciate it.

Thanks,
Z

Undefined method `task' for #<MyApp::Application:0x00000004c3d148>

branch rails3, ruby 1.9.2p180, Rails 3.1.0.beta1

When running "bin/rake community_engine:install:migrations"
get an error

andrey@comp:~/sandbox/rubytalk$ bin/rake community_engine:install:migrations
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from add_acts_as_authentic_module at /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/authlogic-03ed66a97174/lib/authlogic/acts_as_authentic/base.rb:52)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from acts_as_authentic_modules at /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/authlogic-03ed66a97174/lib/authlogic/acts_as_authentic/base.rb:64)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from add_acts_as_authentic_module at /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/authlogic-03ed66a97174/lib/authlogic/acts_as_authentic/base.rb:52)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from acts_as_authentic_modules at /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/authlogic-03ed66a97174/lib/authlogic/acts_as_authentic/base.rb:64)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from add_acts_as_authentic_module at /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/authlogic-03ed66a97174/lib/authlogic/acts_as_authentic/base.rb:52)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from acts_as_authentic_modules at /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/authlogic-03ed66a97174/lib/authlogic/acts_as_authentic/base.rb:64)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from add_acts_as_authentic_module at /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/authlogic-03ed66a97174/lib/authlogic/acts_as_authentic/base.rb:52)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from acts_as_authentic_modules at /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/authlogic-03ed66a97174/lib/authlogic/acts_as_authentic/base.rb:64)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from add_acts_as_authentic_module at /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/authlogic-03ed66a97174/lib/authlogic/acts_as_authentic/base.rb:52)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from acts_as_authentic_modules at /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/authlogic-03ed66a97174/lib/authlogic/acts_as_authentic/base.rb:64)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from add_acts_as_authentic_module at /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/authlogic-03ed66a97174/lib/authlogic/acts_as_authentic/base.rb:52)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from acts_as_authentic_modules at /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/authlogic-03ed66a97174/lib/authlogic/acts_as_authentic/base.rb:64)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from add_acts_as_authentic_module at /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/authlogic-03ed66a97174/lib/authlogic/acts_as_authentic/base.rb:52)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from acts_as_authentic_modules at /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/authlogic-03ed66a97174/lib/authlogic/acts_as_authentic/base.rb:64)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from add_acts_as_authentic_module at /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/authlogic-03ed66a97174/lib/authlogic/acts_as_authentic/base.rb:52)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from acts_as_authentic_modules at /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/authlogic-03ed66a97174/lib/authlogic/acts_as_authentic/base.rb:64)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from add_acts_as_authentic_module at /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/authlogic-03ed66a97174/lib/authlogic/acts_as_authentic/base.rb:52)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from acts_as_authentic_modules at /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/authlogic-03ed66a97174/lib/authlogic/acts_as_authentic/base.rb:64)
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from add_acts_as_authentic_module at /usr/local/rvm/gems/ruby-1.9.2-p180/bundler/gems/authlogic-03ed66a97174/lib/authlogic/acts_as_authentic/base.rb:52)
rake aborted!
undefined method `task' for #MyApp::Application:0x00000004c3d148

(See full trace by running task with --trace)

What I should do?

Switching CE to german language

Hello guys!

I have a problem switching community engine to german language.
In my application_config.rb I set this option using the de-DE.yml file in /config/locales from this repo.
:community_locale => "de-DE"

When I want to run up my start page i get this Exception caught page:
[BEGIN]
ArgumentError in Base#site_index

Showing /usr/local/lib/ruby/gems/1.9.1/bundler/gems/communityengine-8b58293213d7/app/views/base/site_index.html.haml where line #8 raised:

invalid byte sequence in UTF-8

Extracted source (around line #8):

5:
6: #yui-main
7: .yui-b
8: -box :class => "hfeed" do
9: %h3
10: =:recent_posts.l
11: = render :partial => 'posts/post', :collection => @posts
[END]

Can somebody help me with this?

Stack level too deep in production mode

Hi all,

I've run across a strange situation running CE for rails 3 in Ubuntu 11.10. Whenever I run CE in debug mode, it works just fine. But when I switch over to production mode, it throws an error on every page:

Started GET "/" for 127.0.0.1 at Sat Dec 03 00:40:01 -0500 2011
Processing by BaseController#site_index as HTML
Completed 500 Internal Server Error in 13ms

SystemStackError (stack level too deep):

I even get this error on a fresh install. I'm using rails 3.1.2, ruby 1.8.7, and gem 1.8.11.
Here's a full stack trace:

activesupport (3.1.2) lib/active_support/core_ext/class/attribute.rb:81:in acts_as_authentic_config' authlogic (3.1.0) lib/authlogic/session/foundation.rb:21:inrw_config'
authlogic (3.1.0) lib/authlogic/session/foundation.rb:22:in rw_config' authlogic (3.1.0) lib/authlogic/session/password.rb:90:inlogin_field'
authlogic (3.1.0) lib/authlogic/session/password.rb:213:in login_field' authlogic (3.1.0) lib/authlogic/session/password.rb:118:ininitialize'
authlogic (3.1.0) lib/authlogic/session/activation.rb:48:in initialize' authlogic (3.1.0) lib/authlogic/session/klass.rb:55:ininitialize'
authlogic (3.1.0) lib/authlogic/session/scopes.rb:79:in initialize' authlogic (3.1.0) lib/authlogic/session/persistence.rb:37:innew'
authlogic (3.1.0) lib/authlogic/session/persistence.rb:37:in find' community_engine (2.0.0.beta2) lib/community_engine/authenticated_system.rb:57:incurrent_user_session'
community_engine (2.0.0.beta2) lib/community_engine/authenticated_system.rb:20:in current_user' community_engine (2.0.0.beta2) lib/community_engine/authenticated_system.rb:14:inlogged_in?'
community_engine (2.0.0.beta2) app/controllers/base_controller.rb:18:in cache_action?' community_engine (2.0.0.beta2) app/controllers/base_controller.rb:15:in_callback_around_131'
activesupport (3.1.2) lib/active_support/callbacks.rb:205:in _conditional_callback_around_2580' activesupport (3.1.2) lib/active_support/callbacks.rb:444:in_run__398473761__process_action__407076457__callbacks'
activesupport (3.1.2) lib/active_support/callbacks.rb:207:in _conditional_callback_around_2579' community_engine (2.0.0.beta2) lib/community_engine/localized_application.rb:25:inset_locale'
activesupport (3.1.2) lib/active_support/callbacks.rb:206:in _conditional_callback_around_2579' activesupport (3.1.2) lib/active_support/callbacks.rb:425:in_run__398473761__process_action__407076457__callbacks'
activesupport (3.1.2) lib/active_support/callbacks.rb:386:in send' activesupport (3.1.2) lib/active_support/callbacks.rb:386:in_run_process_action_callbacks'
activesupport (3.1.2) lib/active_support/callbacks.rb:81:in send' activesupport (3.1.2) lib/active_support/callbacks.rb:81:inrun_callbacks'
actionpack (3.1.2) lib/abstract_controller/callbacks.rb:17:in process_action' actionpack (3.1.2) lib/action_controller/metal/rescue.rb:17:inprocess_action'
actionpack (3.1.2) lib/action_controller/metal/instrumentation.rb:30:in process_action' activesupport (3.1.2) lib/active_support/notifications.rb:53:ininstrument'
activesupport (3.1.2) lib/active_support/notifications/instrumenter.rb:21:in instrument' activesupport (3.1.2) lib/active_support/notifications.rb:53:ininstrument'
actionpack (3.1.2) lib/action_controller/metal/instrumentation.rb:29:in process_action' actionpack (3.1.2) lib/action_controller/metal/params_wrapper.rb:201:inprocess_action'
activerecord (3.1.2) lib/active_record/railties/controller_runtime.rb:18:in process_action' actionpack (3.1.2) lib/abstract_controller/base.rb:121:inprocess'
actionpack (3.1.2) lib/abstract_controller/rendering.rb:45:in process' actionpack (3.1.2) lib/action_controller/metal.rb:193:indispatch'
actionpack (3.1.2) lib/action_controller/metal/rack_delegation.rb:14:in dispatch' actionpack (3.1.2) lib/action_controller/metal.rb:236:inaction'
actionpack (3.1.2) lib/action_dispatch/routing/route_set.rb:65:in call' actionpack (3.1.2) lib/action_dispatch/routing/route_set.rb:65:indispatch'
actionpack (3.1.2) lib/action_dispatch/routing/route_set.rb:29:in call' rack-mount (0.8.3) lib/rack/mount/route_set.rb:152:incall'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:96:in recognize' rack-mount (0.8.3) lib/rack/mount/code_generation.rb:75:inoptimized_each'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:95:in recognize' rack-mount (0.8.3) lib/rack/mount/route_set.rb:141:incall'
actionpack (3.1.2) lib/action_dispatch/routing/route_set.rb:532:in call' rakismet (1.1.2) lib/rakismet/middleware.rb:10:incall'
sass (3.1.11) lib/sass/./sass/plugin/rack.rb:54:in call' actionpack (3.1.2) lib/action_dispatch/middleware/best_standards_support.rb:17:incall'
rack (1.3.5) lib/rack/etag.rb:23:in call' rack (1.3.5) lib/rack/conditionalget.rb:25:incall'
actionpack (3.1.2) lib/action_dispatch/middleware/head.rb:14:in call' actionpack (3.1.2) lib/action_dispatch/middleware/params_parser.rb:21:incall'
actionpack (3.1.2) lib/action_dispatch/middleware/flash.rb:247:in call' rack (1.3.5) lib/rack/session/abstract/id.rb:195:incontext'
rack (1.3.5) lib/rack/session/abstract/id.rb:190:in call' actionpack (3.1.2) lib/action_dispatch/middleware/cookies.rb:331:incall'
activerecord (3.1.2) lib/active_record/query_cache.rb:64:in call' activerecord (3.1.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:477:incall'
actionpack (3.1.2) lib/action_dispatch/middleware/callbacks.rb:29:in call' activesupport (3.1.2) lib/active_support/callbacks.rb:392:in_run_call_callbacks'
activesupport (3.1.2) lib/active_support/callbacks.rb:81:in send' activesupport (3.1.2) lib/active_support/callbacks.rb:81:inrun_callbacks'
actionpack (3.1.2) lib/action_dispatch/middleware/callbacks.rb:28:in call' rack (1.3.5) lib/rack/sendfile.rb:101:incall'
actionpack (3.1.2) lib/action_dispatch/middleware/remote_ip.rb:48:in call' actionpack (3.1.2) lib/action_dispatch/middleware/show_exceptions.rb:47:incall'
railties (3.1.2) lib/rails/rack/logger.rb:13:in call' rack (1.3.5) lib/rack/methodoverride.rb:24:incall'
rack (1.3.5) lib/rack/runtime.rb:17:in call' activesupport (3.1.2) lib/active_support/cache/strategy/local_cache.rb:72:incall'
rack (1.3.5) lib/rack/lock.rb:15:in call' rack-cache (1.1) lib/rack/cache/context.rb:132:inforward'
rack-cache (1.1) lib/rack/cache/context.rb:241:in fetch' rack-cache (1.1) lib/rack/cache/context.rb:181:inlookup'
rack-cache (1.1) lib/rack/cache/context.rb:65:in call!' rack-cache (1.1) lib/rack/cache/context.rb:50:incall'
railties (3.1.2) lib/rails/engine.rb:456:in call' rack (1.3.5) lib/rack/content_length.rb:14:incall'
railties (3.1.2) lib/rails/rack/log_tailer.rb:14:in call' rack (1.3.5) lib/rack/handler/webrick.rb:59:inservice'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:inrun'
/usr/lib/ruby/1.8/webrick/server.rb:173:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:instart'
/usr/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:instart'
/usr/lib/ruby/1.8/webrick/server.rb:92:in each' /usr/lib/ruby/1.8/webrick/server.rb:92:instart'
/usr/lib/ruby/1.8/webrick/server.rb:23:in start' /usr/lib/ruby/1.8/webrick/server.rb:82:instart'
rack (1.3.5) lib/rack/handler/webrick.rb:13:in run' rack (1.3.5) lib/rack/server.rb:265:instart'
railties (3.1.2) lib/rails/commands/server.rb:70:in start' railties (3.1.2) lib/rails/commands.rb:54 railties (3.1.2) lib/rails/commands.rb:49:intap'
railties (3.1.2) lib/rails/commands.rb:49
script/rails:6:in `require'
script/rails:6

ERROR in bin/rake community_engine:install:migrations

hi there, sorry but im a total noob when it comes to ruby on rails, i followed this link
#37

which sovled the uninitialized constant Tag problem but i get
rake aborted!
undefined method merge_joins' for classClass'

please help!!
thnx a mill in advance for your time =] happy newyear

Running rake community_engine:test take several hours

Running rake community_engine:test is taking several hours on my machine. I can see 3 or 4 processes waiting for IO, while the CPU is just used for ~1/3 (75% idle):

see: http://gist.github.com/152183

I think it could be someting to do with thread :

see: http://gist.github.com/152180

It also seems to wait forever : http://gist.github.com/152185

any idea ?
Bye Luca

System :
root@webby2066:# ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
root@webby2066:
# uname -a
Linux webby2066 2.6.18-92.1.18.el5xen #1 SMP Wed Nov 12 09:48:10 EST 2008 x86_64 GNU/Linux
root@webby2066:# rails -v
Rails 2.3.2
root@webby2066:
#

rake error with tinymce-rails (3.4.9)

rake db:migrate

Expected my_ce_project/vendor/ruby/1.9.1/bundler/gems/communityengine-afd3290276d0/vendor/plugins/tiny_mce/lib/tiny_mce/railtie.rb to define TinyMCE::Railti

bundle info:
Installing tinymce-rails (3.4.9)
Installing community_engine (2.0.0.beta3)

My solution is to
Change community_engine.gemspec line 51 as
s.add_dependency(%q, ["~> 3.4.7","< 3.4.9"])
or add gem 'tinymce', '< 3.4.9' in my_ce_project Gemfile
to use tinymce-rails (3.4.8) and it work!

User.received_messages is broken

On the rails3 branch of Community Engine, User.received_messages is broken.

In app/models/user.rb:
[Line 95] :order => "message.created_at DESC",
[Line 96] :conditions => ["message.recipient_deleted = ?", false]

is where I believe the breakage is happening.

Changing 'message' to 'messages' should fix the problem.

Friendships index rand() fails in SQLite

In app/controllers/friendships_controller.rb, the index method uses :order => "rand()" for a couple of queries on the Friendship model. This fails in SQLite (and probably any other DB engine that doesn't support the rand() function):

ActiveRecord::StatementInvalid: SQLite3::SQLException: no such function: rand

This is bad for reasons of database-agnosticism, but could be a performance issue as well.

There are some alternative ways of implementing random sorting, both for single records and for more generic multiple-record finds. Another solution is to check which database backend is being used (via ActiveRecord::Base.connection.adapter_name) and use rand() or random() appropriately, but this is a pretty ugly approach.

If the order of records really doesn't matter, it seems best to omit the :order clause entirely. This will allow the query to work in any database backend. This is the fix I used in my fork.

Postgres compatibility

Can't migrate when deploying CE on Postgres. I get the following error when lauching "rake db:migrate"

RuntimeError: ERROR C25P02 Mcurrent transaction is aborted, commands ignored until end of transaction block Fpostgres.c L906 Rexec_simple_query: SELECT version FROM plugin_schema_migrations WHERE plugin_name = 'community_engine'

with the trace activated :

RuntimeError: ERROR C25P02 Mcurrent transaction is aborted, commands ignored until end of transaction block Fpostgres.cL906 Rexec_simple_query: SELECT version FROM plugin_schema_migrations WHERE plugin_name = 'community_engine' /home/steph/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract_adapter.rb:212:in log' /home/steph/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/postgresql_adapter.rb:507:inexecute' /home/steph/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/postgresql_adapter.rb:985:in select_raw' /home/steph/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/postgresql_adapter.rb:435:inselect_rows' /home/steph/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/database_statements.rb:27:in select_values' /media/Data/Steph/projets/entrenounous/vendor/plugins/community_engine/init.rb:25:incurrent_version' /home/steph/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/migration.rb:384:in migrate' /var/lib/gems/1.8/gems/desert-0.5.0/lib/desert/plugin_migrations/migrator.rb:16:inmigrate_plugin' /var/lib/gems/1.8/gems/desert-0.5.0/lib/desert/rails/migration.rb:5:in migrate_plugin' ./db/migrate//20090806141335_community_engine_to_version_62.rb:3:inup_without_benchmarks' /home/steph/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/migration.rb:282:in send' /home/steph/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/migration.rb:282:inmigrate' /usr/lib/ruby/1.8/benchmark.rb:293:in measure' /home/steph/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/migration.rb:282:inmigrate' (DELEGATION):2:in send' (DELEGATION):2:inmigrate' /home/steph/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/migration.rb:486:in migrate' /home/steph/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/migration.rb:560:incall' /home/steph/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/migration.rb:560:in ddl_transaction' /home/steph/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract/database_statements.rb:136:intransaction' /home/steph/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/transactions.rb:182:in transaction' /home/steph/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/migration.rb:560:inddl_transaction' /home/steph/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/migration.rb:485:in migrate' /home/steph/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/migration.rb:472:ineach' /home/steph/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/migration.rb:472:in migrate' /home/steph/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/migration.rb:400:inup' /home/steph/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/migration.rb:383:in migrate' /home/steph/.gem/ruby/1.8/gems/rails-2.3.2/lib/tasks/databases.rake:116 /usr/lib/ruby/1.8/rake.rb:546:incall' /usr/lib/ruby/1.8/rake.rb:546:in execute' /usr/lib/ruby/1.8/rake.rb:541:ineach' /usr/lib/ruby/1.8/rake.rb:541:in execute' /usr/lib/ruby/1.8/rake.rb:508:ininvoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:501:in synchronize' /usr/lib/ruby/1.8/rake.rb:501:ininvoke_with_call_chain' /usr/lib/ruby/1.8/rake.rb:494:in invoke' /usr/lib/ruby/1.8/rake.rb:1931:ininvoke_task' /usr/lib/ruby/1.8/rake.rb:1909:in top_level' /usr/lib/ruby/1.8/rake.rb:1909:ineach' /usr/lib/ruby/1.8/rake.rb:1909:in top_level' /usr/lib/ruby/1.8/rake.rb:1948:instandard_exception_handling' /usr/lib/ruby/1.8/rake.rb:1903:in top_level' /usr/lib/ruby/1.8/rake.rb:1881:inrun' /usr/lib/ruby/1.8/rake.rb:1948:in standard_exception_handling' /usr/lib/ruby/1.8/rake.rb:1878:inrun' /usr/bin/rake:28

The migration of CE from Engines to Desert could have broken its Postgres compatibility ...

overrides in application.yml

Hi.

I'm unsure if application.yml is truly being used any more in the rails3 version? The CE application_config says:

" :app_host => "example.com", #override this in your application.yml"

But the version of configatron in use by CE has had yaml support removed and I don't see anywhere where application.yml is bring consumed.

https://github.com/markbates/configatron#yaml

"Support for YAML has been deprecated and will be removed in version 2.9 of Configatron. Please switch to Ruby based configuration of Configatron. Trust me, it’s a lot nicer and easier to use. Why would you not want to?"

Appreciate this might just be a setup problem my end but I've been scratching my head trying to work out if I'm doing something wrong because application.yml isn't automatically overriding the settings in CE application_config :)

What's the best approach to use in the rails3 CE, to override application_config settings in the apps application_config in just the same way they are set in CEs?

Can't access CE,

I've installed CE (rails3) inside my existing app and added following to my routes.rb

mount CommunityEngine::Engine => "/ce"

rake routes shows following:

rake routes | grep community
      community_engine        /ce                          {:to=>CommunityEngine::Engine}

However accessing this url results in an routing error

No route matches [GET] "/ce"

assets not loaded rails3 branch

I was eventually able to successfully run the bundle installer but the assets are not loading (stylesheets, javascripts, images). I manually added a stylesheet at the expected stylesheets/community_engine.css but the referenced images at /assets/... are not loading.

I am new to rails and rails 3 but usually can resolve these sorts of things.

Rails 3: Seeding Roles

I'm working with a new production site, with an empty database.

I'm having difficulty seeding the default values for the Roles enumeration.

I first tried added the following lines to db/seeds.rb
Role.create!(:id => 1, :name => 'admin') I also tried Role.create!(:name => 'admin')
these result in an error... so I checked the acts_as_enumeration documentation

According to the acts_as_enumeration documentation I should be able to do this:
class Role < ActiveRecord::Base
require_from_ce 'models/role'

create :id => 1, :name => 'admin'
create :id => 2, :name => 'moderator'
create :id => 3, :name => 'member'

end

However, this doesn't work either. I've worked around this for now using rake db:fixtures:load FIXTURES=roles

But, is there a better way to seed these values?

FYI... you might want to look into simple_enum for this... I've used it in several places and I'm rather happy... If you'd like to switch to this I'd be happy to help.

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.