Installation of Savage Beast?

14 views
Skip to first unread message

Nick Coyne

unread,
May 23, 2007, 9:10:25 AM5/23/07
to rubyonra...@googlegroups.com
Busy implementing Savage Beast into our home-grown CMS and running into
a few hiccups.

What I've done so far is:
1. Installed Engines 1.2
2. Copied Savage Beast into the plugins folder
3. Copied the other plugins in that Beast uses (browser_filters,
exception_logger, gibberish, open_id_authentication, white_list and
white_list_formatted_content)
4. Created a route in my routes.rb before my CMS routing instructions,
like so:
map.connect 'forum',
:controller => "forums",
:action => "index"

When I visit http://mysite/forum I get the following error:

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.

Any help appreciated.

Thanks
Nick

--
Posted via http://www.ruby-forum.com/.

Nick Coyne

unread,
May 23, 2007, 9:12:49 AM5/23/07
to rubyonra...@googlegroups.com
I should also add that I have run the plugin migrations and the new
tables are in place.

Jodi Showers

unread,
May 23, 2007, 10:17:57 AM5/23/07
to rubyonra...@googlegroups.com
Hey Nick -

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

Nick Coyne

unread,
May 23, 2007, 10:52:06 AM5/23/07
to rubyonra...@googlegroups.com
Jodi Showers wrote:
> 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') %>

thx.
Nick

LAB

unread,
May 31, 2007, 11:18:00 AM5/31/07
to Ruby on Rails: Talk
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!

On May 23, 10:52 am, Nick Coyne <rails-mailing-l...@andreas-s.net>
wrote:

Jodi Showers

unread,
May 31, 2007, 11:33:30 AM5/31/07
to rubyonra...@googlegroups.com
You're missing white_list_formatted_content (http://svn.techno-
weenie.net/projects/plugins/white_list_formatted_content/)

If you don't have, you'll also need:

white_list
browser_filters

what would we do with Rick?

SB really needs some docs, so please do blog. Perhaps I could include
some measure in the README/

Jodi

LAB

unread,
May 31, 2007, 12:47:36 PM5/31/07
to Ruby on Rails: Talk
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:

3 [C:\bpa] c:\ruby\bin\ruby.exe script/plugin install http://svn.techno-weenie.n
et/projects/plugins/white_list_formatted_content/
already installed: white_list_formatted_content (http://svn.techno-
weenie.net/pr
ojects/plugins/white_list_formatted_content/). pass --force to
reinstall

Any other ideas? Thanks in advance, I would definitely like to help
out w/ a doc!

Jodi Showers

unread,
May 31, 2007, 12:55:04 PM5/31/07
to rubyonra...@googlegroups.com
ahh. I thought you were referring to your app - not the demo.

would you mind emailing me the steps to re-create the bug.

I'lll try it out here, and patch the demo if needed.

thanx for your help.

Jodi
jo...@nnovaiton.ca

Foo Bar

unread,
Aug 14, 2007, 9:15:09 PM8/14/07
to rubyonra...@googlegroups.com
Jodi Showers wrote:
> ahh. I thought you were referring to your app - not the demo.
>
> would you mind emailing me the steps to re-create the bug.
>
> I'lll try it out here, and patch the demo if needed.
>
> thanx for your help.
>
> Jodi
> jo...@nnovaiton.ca

Has anyone successfully installed SB? If so is there a step by step
instruction for the process? It would be great to make use of the
product!

Jodi Showers

unread,
Aug 15, 2007, 2:16:31 PM8/15/07
to rubyonra...@googlegroups.com
Foo Bar -


SB is deployed in a few projects (the-soup.net, plus a few others) to
date.

the blog post is kinda-gritty - you'll likely find most of your
answers with a demo app I put up::

http://nnovation.ca/2007/5/18/savage-beast

http://svn.nnovation.ca/svn/savage_beast_demo/

cheers,
Jodi

Reply all
Reply to author
Forward
0 new messages