[CommunityEngine] Strange Caching Behavior

2009-03-02 Thread Justin G
About a month ago I launched my community engine site into the wild. At the time, I had some caching issues with the front page. I read up on how caching works in rails and looked at the code a bit, but everything looked OK. So I figured it was best to disable caching for the site_index action

[CommunityEngine] Re: Strange Caching Behavior

2009-03-07 Thread Justin G
:32 PM, Justin G jtgei...@gmail.com wrote: About a month ago I launched my community engine site into the wild. At the time, I had some caching issues with the front page.  I read up on how caching works in rails and looked at the code a bit, but everything looked OK.  So I figured

[CommunityEngine] Sitemap Fixes

2009-03-12 Thread Justin G
I just commited a few fixes to the sitemap views. The first commit fixes a bug where the post urls were not being correctly generated. It would frequently produce urls without a login slug, ex: //posts/ 1-...

[CommunityEngine] Security Issue: Leaking Private User Data in Comments Controller

2009-03-16 Thread Justin G
I've found what I believe is a security bug in the comments controller. Here is the offending action: def show @comment = Comment.find(params[:id]) render :text = @comment.inspect end The problem is that we are rendering the entire comment object to any logged in user. This gives

[CommunityEngine] Events

2009-06-21 Thread Justin G
I want to give a quick shout out to commit cfa4bac5a2. I've been thinking about making enhancements to the events system and I'm glad to see that other improvements are being made as well. I'm announcing my plans to get feedback from others who are trying to use events in CE. Here are some of

[CommunityEngine] Re: adding countries

2009-08-25 Thread Justin G
Andrew, I've noticed this before for some models. Views would also have to be added to make it work. In this case a web interface probably isn't necessary. I would recommend creating a migration in your app to add the countries you need. You could also add them via the console but then you

[CommunityEngine] Re: More Semantic templates

2009-12-10 Thread Justin G
This is great. I'm getting ready to re-launch my site with a new custom theme and I have maybe another week of last minute tweaks and testing before I do. SASS is something I found interesting when I first started working on the re-theme, but I decided to stick what what I knew I could get

[CommunityEngine] Re: Site index errors out when new user is not yet active

2009-12-21 Thread Justin G
Matt, activities.map{|a| find(a.user_id) } I ran into this exact same problem recently. You are absolutely correct, in the line above find is being called with a scope. In this case from a call in base_controller (scope: active). User.active.find_by_activity({:limit = 5, :require_avatar =

[CommunityEngine] git branch vs. desert plugins

2009-12-29 Thread Justin G
Bruno, For the record; you should rarely be touching the CE plugin code (unless you're doing a bugfix or feature addition that is intended to go back into core). Your local application customizations should be done in your app directory, not directly to CE. I have read this before but at the

[CommunityEngine] Re: Which is the best Ruby OS Social Platform? Info, questions, comparison including Elgg.

2010-05-04 Thread Justin G
Malcolm, Thanks for that list of other projects. I think its interesting to note that most of the projects you list are rails apps. Before jumping to Community Engine (about 1 1/2 years ago) I ran an ELGG implementation. At the time I had to decide between migrating to the next version of ELGG

[CommunityEngine] Re: Constant RiCal from ri_cal.rb not found

2010-06-06 Thread Justin G
Steve, Try adding the following to app/controllers/events_controller.rb right below the other require: require 'ri_cal' This resolved an identical problem I was seeing this weekend. Search engines were trying to download /events/ical.ics and causing an NameError (Constant RiCal from ri_cal.rb

[CommunityEngine] Re: Rails 3 branch

2011-02-20 Thread Justin G
Bruno, I am very excited about the rails3 port. I was able to successfully run the tests also, but it took a bit of work for me to get my environment set up correctly. Here are some of the steps I took to get things working correctly. I hope this will help others that run into similar issues.

[CommunityEngine] Re: Rails 3 branch

2011-03-09 Thread Justin G
Tim, I got this same error as well. It required a small patch to the gemspec of meta_search. You can see the associated pull request here: https://github.com/bborn/meta_search/pull/1/files If you point your gemfile to my rails3.1 branch at git://github.com/jtgeibel/meta_search.git all should

[CommunityEngine] Re: parse error in application.yml

2011-03-10 Thread Justin G
Hugh, Yes, I ran into these problems with psych as well. It doesn't support some syntax that was being used. You can see the associated commit here: https://github.com/jtgeibel/communityengine/commit/42ceacf352ca925c4278b0491a30adf6d507e766 I'm not certain that this 1 commit covers all of the

[CommunityEngine] Re: Rails 3 branch

2011-03-24 Thread Justin G
Alex, Try the following line in your Gemfile instead: gem 'meta_search', :git = 'git://github.com/jtgeibel/ meta_search.git', :branch = 'rails3.1' If you're new to rails, you could also try walking through my installation instructions which I've tweaked slightly here:

[CommunityEngine] Re: Rails 3 branch

2011-03-28 Thread Justin G
Alex, undefined method `identity_map=' for ActiveRecord::Base:Class g:/ror/Ruby192/lib/ruby/gems/1.9.1/bundler/gems/rails-1bedee56314f/ activerecord/lib/active_record/base.rb:1025:in `method_missing' It looks like you are running rails under Windows. That's probably not related to this