This should probably be in CE's core (I do this in just about every project
I work on).

On Fri, May 15, 2009 at 4:03 PM, Andrei Erdoss <[email protected]> wrote:

> I tried both of these methods and it seemed to have solved the problem.
> I got this from
> http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/f54f18f4d4354926?pli=1
>
> Please let me know if it works for you too. Thanks,
>
> First, you could put something like this in your plugin’s init.rb file:
> # This plugin should be reloaded in development mode.
> if RAILS_ENV == ‘development’
> ActiveSupport::Dependencies.load_once_paths.reject!{|x| x
> =~/^#{Regexp.escape(File.dirname(__FILE__))}/}
> end
> Second, you could put something like this in your application’s
> environment.rb file:
> config.reload_plugins = true if RAILS_ENV == ‘development’
>
>
> On Fri, May 15, 2009 at 1:18 PM, Andrei Erdoss <[email protected]> wrote:
>
>> I seem to get this error only in rails 2.3 and desert 0.5. Does anybody
>> else experience this issue?
>>
>> On Fri, May 15, 2009 at 1:35 AM, Aake Gregertsen <
>> [email protected]> wrote:
>>
>>> I have the same problem with rails 2.2 and the engines version of CE.
>>> It's a development mode bug only.
>>>
>>>
>>> On Thu, May 14, 2009 at 2:44 PM, Andrei Erdoss <[email protected]> wrote:
>>>
>>>> Given a fresh installation of CE EDGE (Rails 2.3 + desert 0.5), if I
>>>> reopen a class (for example user.rb) in my host app, I'm getting an
>>>> exception if this class includes a new relationship. I have tested
>>>> that this a Rails 2.3 + desert 0.5 problem, since seems to work as
>>>> expected with rails 2.2 + desert 0.5. I have checked it with tog
>>>> (http://www.togh.com) that also uses desert and the same problem
>>>> arise. Attached my user.rb and my overwritten template (just to call
>>>> the new relationship).  Strack trace below.
>>>>
>>>> What you will see is that the exception comes from listing activities,
>>>> I supposed this is caused for ajax or haml or something else I'm not
>>>> familiar with, but the problem is still there.
>>>>
>>>> As I said, I *know* (we'll, I think) it's a problem not related to CE
>>>> itself, but I suppose you would like to know. I have also posted a
>>>> message in desert's mailing list about this issue.
>>>>
>>>> -------
>>>>
>>>>  NoMethodError in Base#footer_content
>>>>
>>>> Showing vendor/plugins/community_
>>>> engine/app/views/activities/_activity.html.haml
>>>> where line #8 raised:
>>>>
>>>> You have a nil object when you didn't expect it!
>>>> You might have expected an instance of Array.
>>>> The error occurred while evaluating nil.include?
>>>>
>>>> Extracted source (around line #8):
>>>>
>>>> 5:     -if activity.can_be_deleted_by?(current_user)
>>>> 6:       =link_to_remote image_tag("icons/delete.png", :plugin =>
>>>> 'community_engine'), :url => activity_path(activity), :method =>
>>>> :delete, :html => {:class => 'right'}
>>>> 7:
>>>> 8:     =link_to activity.user.login.capitalize,
>>>> user_path(activity.user.login_slug)
>>>> 9:     - if activity.item
>>>> 10:       - case activity.item_type
>>>> 11:         - when 'Post'
>>>>
>>>>
>>>> --
>>>> Andrei Erdoss
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>> --
>> Andrei Erdoss
>>
>
>
>
> --
> Andrei Erdoss
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to