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/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I should also add that I have run the plugin migrations and the new tables are in place. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 23-May-07, at 9:12 AM, Nick Coyne wrote:> > I should also add that I have run the plugin migrations and the new > tables are in place. > > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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 > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 31-May-07, at 11:18 AM, LAB wrote:> > 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...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: >> 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 >> >> -- >> Posted viahttp://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 May 31, 11:33 am, Jodi Showers <j...-BOB1p6JRLoAV+D8aMU/kSg@public.gmane.org> wrote:> 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 31-May-07, at 11:18 AM, LAB wrote: > > > > > 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...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > wrote: > >> 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 > > >> -- > >> Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 jodi-BU/VqAOasIMV+D8aMU/kSg@public.gmane.org On 31-May-07, at 12:47 PM, LAB wrote:> > 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 May 31, 11:33 am, Jodi Showers <j...-BOB1p6JRLoAV+D8aMU/kSg@public.gmane.org> wrote: >> 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 31-May-07, at 11:18 AM, LAB wrote: >> >> >> >>> 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...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> >>> wrote: >>>> 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 >> >>>> -- >>>> Posted viahttp://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 > jodi-BU/VqAOasIMV+D8aMU/kSg@public.gmane.orgHas 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! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Foo Bar - On 14-Aug-07, at 9:15 PM, Foo Bar wrote:> > 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 >> jodi-BU/VqAOasIMV+D8aMU/kSg@public.gmane.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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---