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/.
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
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
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:
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
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!
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.
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!
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