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
on 2007-05-23 15:10
on 2007-05-23 15:12
I should also add that I have run the plugin migrations and the new tables are in place.
on 2007-05-23 16:34
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
on 2007-05-23 16:52
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
on 2007-05-31 17:18
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>
on 2007-05-31 17:34
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
on 2007-05-31 18:48
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!
on 2007-05-31 18:55
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 firstname.lastname@example.org
on 2007-08-15 03:15
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 > email@example.com 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!
on 2007-08-15 20:19
Foo Bar - On 14-Aug-07, at 9:15 PM, Foo Bar wrote: >> Jodi >> firstname.lastname@example.org > > 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