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 -~----------~----~----~----~------~----~------~--~---
