Busy implementing Savage Beast into our home-grown CMS and running into
a few hiccups.
What I’ve done so far is:
Installed Engines 1.2
Copied Savage Beast into the plugins folder
Copied the other plugins in that Beast uses (browser_filters,
exception_logger, gibberish, open_id_authentication, white_list and
white_list_formatted_content)
Created a route in my routes.rb before my CMS routing instructions,
like so:
map.connect ‘forum’,
:controller => “forums”,
:action => “index”
NoMethodError in Forums#index
Showing vendor/plugins/savage_beast/app/views/forums/index.rhtml where
line #9 raised:
undefined method `admin?’ for #User:0x4470fa0
where line #9 is
<% if admin? %>
I’'m assuming this is related to authentication, but I’m unsure what the
steps are to resolve this.
Looks like you’ve found a dependency on my implementation - harumph!
You can solve that issue by adding an “admin?” method to your User
model (I’m doing role based stuff, that shouldn’t be in the standard
templates). Additionally you can over-ride the view in question(which
is likely how I integrated SB)
please email me and I’ll work you through your integration.
Cheers,
Jodi
General Partner
The nNovation Group inc.
www.nnovation.ca/blog
You can solve that issue by adding an “admin?” method to your User
model (I’m doing role based stuff, that shouldn’t be in the standard
templates). Additionally you can over-ride the view in question(which
is likely how I integrated SB)
Ok, added the method. Now I get
NoMethodError in Forums#index
Showing vendor/plugins/savage_beast/app/views/forums/index.rhtml where
line #18 raised:
undefined method `formatted_all_posts_path’ for
#<#Class:0x470a1e4:0x470a1bc>
where line #18 is
18: <%= feed_icon_tag _(“Recent Posts”),
formatted_all_posts_path(:format => ‘rss’) %>
I have been trying to integrate SB into my current RoR app. I’ve
gotten pretty far (I think), and found the sbDemo (http://
www.nnovation.ca/2007/5/18/savage-beast) extremely helpful! I think I
am so close … but when I go to /forums on my site, I get this error:
“undefined method `format_attribute’ for Forum:Class”
I downloaded all the plugins, migrated tables, updated my
routes.rb … what else am I missing? After I’m finished, I’d love to
write up some really detailed steps and share with the group!
Hmph. I pulled all the plugins over from your sbDemo, including
white_list_formatted_content, white_list, and browser_filters. Here’s
the output when I try to install it again using the svn site: