Bruno,

I tried installing what the documentation refers to as "the long way"
the first time and may have had some conflicts with the
restful_authentication plugin, so I reinstalled from the template.  I
prefer to use the Postgres database, so on running the tests, I got a
bunch of errors with the 'nil' value for read_at in messages.yml.
Replacing the field with a blank value creates a NULL timestamp, the
desired effect, and eliminates the errors.

Otherwise, I had to add

   create_table :plugin_schema_info do |t|
     t.string :version
     t.string :plugin_name
    end

    create_table :plugin_schema_migrations do |t|
     t.string :version
     t.string :plugin_name
    end

to the autogenerated migration added by script/generate
plugin_migration (There is a community_engine rake task that will
create one of these tables, but not both.).

I also had to change

vendor/plugins/community_engine/test/functional/
base_controller_test.rb to

 def test_should_get_index_rss
    get :site_index, :format => 'rss'
    assert_generates("/", {:controller => "base", :action =>
"site_index", :format => 'rss'}, {}, {:format => 'rss'})
    assert_response :success
  end

At any rate, I'm not getting the AuthenticatedSystem errors anymore.
I'd love to know what had been causing them, but I'll leave well
enough alone.

Thanks for you help.  :)  I'm looking forward to poking around.

Rich

On Sep 16, 12:08 pm, Bruno Bornsztein <[email protected]>
wrote:
> Hmm, that seems like an installation error. I'm not getting that anywhere (I
> just did a clean install from the template). Are your tests passing?
>
> On Wed, Sep 16, 2009 at 8:20 AM, Rich <[email protected]> wrote:
>
> > Christopher,
>
> > I space stuff like that all the time :), but I get this error in
> > vendor/plugins/community_engine/app/views/forums/index.html.haml,
> > which is included with the distribution.  I can stuff these calls into
> > a helper_method invocation at the top of base_controller.rb, but I
> > thought I might be missing something during installation that would
> > make these protected controller methods available in a view context.
>
> > Thanks,
>
> > Rich
>
> > undefined method `admin?' for #<ActionView::Base:0xb611b44c>
>
> > Extracted source (around line #4):
>
> > 1: - @meta = { :description => "#{AppConfig.community_name}
> > forums.",:keywords => "#{AppConfig.meta_keywords}", :robots =>
> > AppConfig.robots_meta_list_content}
> > 2: -...@section = 'forums'
> > 3:
> > 4: -if admin?
> > 5:   .box.alt.first_alt
> > 6:     %h3= :admin.l
> > 7:     %p= link_to :create_new_forum.l, new_forum_path, :class =>
> > "utility"
>
> > RAILS_ROOT: /var/www/test
> > Application Trace | Framework Trace | Full Trace
>
> > /var/www/football/vendor/plugins/community_engine/app/views/forums/
> > index.html.haml:4:in
>
> > `_run_haml_vendor47plugins47community_engine47app47views47forums47index46html46haml'
>
> > On Sep 15, 5:45 pm, Christopher Becker <[email protected]> wrote:
> > > Pardon me for being obvious, but I had issues with this once because I
> > > forgot to inherit a controller I added from the "Base" controller.
>
> > > On Sep 15, 2009, at 2:28 PM, Rich wrote:
>
> > > > My views are complaining that theAuthenticatedSystemcalls, admin?,
> > > > moderator?, etc. aren't defined.  Did I miss a configuration option
> > > > that would make these protected controller functions (introduced into
> > > > BaseController) available in the forum and post views?
>
> > > > Thanks,
>
> > > > Rich
--~--~---------~--~----~------------~-------~--~----~
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