Toffee is a plugin that gives you automatic controller-less admin screens for your Rails models. Simply going to the URL /admin/model_name will bring up an admin screen for that model, allowing you to view, edit, create and delete records belonging to it. Also I''ve now added a toffee_list helper, so you can insert a customised toffee-style list anywhere in your application simply by putting <%toffee_list ''model_name'' %> in your view. Check out the links below: Installation guide: http://open.bluefountain.com/software/toffee Usage guide: http://open.bluefountain.com/software/toffee/documentation/how-to/using-toffee-in-your-rails-application toffee_list helper guide: http://open.bluefountain.com/software/toffee/documentation/how-to/using-the-toffee_list-helper -- 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 -~----------~----~----~----~------~----~------~--~---
Great plug-in, I love the functionality. I have a question though, how can you make this plug-in work just like in the tutorial but work with existing auth systems? restful_authentication or AAA for example. We have a standard before_filter auth check on every controller, but I don''t want everyone to have access to site.com/model/admin (Even though they should have access to the regular actions in that controller/model). Thanks. On Apr 3, 1:50 pm, David Fitzgibbon <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Toffee is a plugin that gives you automatic controller-less admin > screens for your Rails models. Simply going to the URL /admin/model_name > will bring up an admin screen for that model, allowing you to view, > edit, create and delete records belonging to it. > > Also I''ve now added a toffee_list helper, so you can insert a customised > toffee-style list anywhere in your application simply by putting <%> toffee_list ''model_name'' %> in your view. Check out the links below: > > Installation guide:http://open.bluefountain.com/software/toffee > > Usage guide:http://open.bluefountain.com/software/toffee/documentation/how-to/usi... > > toffee_list helper guide:http://open.bluefountain.com/software/toffee/documentation/how-to/usi... > > -- > 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 -~----------~----~----~----~------~----~------~--~---
Marston A. wrote:> Great plug-in, I love the functionality. > > I have a question though, how can you make this plug-in work just like > in the tutorial but work with existing auth systems? > restful_authentication or AAA for example. We have a standard > before_filter auth check on every controller, but I don''t want > everyone to have access to site.com/model/admin (Even though they > should have access to the regular actions in that controller/model). > Thanks. > > On Apr 3, 1:50 pm, David Fitzgibbon <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>You can add a file called toffee_controller.rb in your app/controllers folder, containing something like... class ToffeeController < ApplicationController before_filter :your_auth_stuff end This should do it, if not let me know and I''ll try it out myself. Thanks for trying it out! -- 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 -~----------~----~----~----~------~----~------~--~---
David, Thanks, I''ll give it a shot. On Apr 5, 10:05 am, David Fitzgibbon <rails-mailing-l...@andreas- s.net> wrote:> Marston A. wrote: > > Great plug-in, I love the functionality. > > > I have a question though, how can you make this plug-in work just like > > in the tutorial but work with existing auth systems? > > restful_authentication or AAA for example. We have a standard > > before_filter auth check on every controller, but I don''t want > > everyone to have access to site.com/model/admin (Even though they > > should have access to the regular actions in that controller/model). > > Thanks. > > > On Apr 3, 1:50 pm, David Fitzgibbon <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > You can add a file called toffee_controller.rb in your app/controllers > folder, containing something like... > > class ToffeeController < ApplicationController > > before_filter :your_auth_stuff > > end > > This should do it, if not let me know and I''ll try it out myself. > > Thanks for trying it out! > > -- > 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 -~----------~----~----~----~------~----~------~--~---
Konstantin G Tumalevich
2007-Apr-06 05:25 UTC
Re: Toffee Plugin 0.2 - Automated Admin Screens
Hm ... can`t use this plugin. on request admin/article i see this errors:>NoMethodError in ToffeeController#index >super: no superclass method `setup''what`s wrong? -- Sorry to my english :( --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Konstantin G Tumalevich wrote:> Hm ... can`t use this plugin. > on request admin/article i see this errors: > >>NoMethodError in ToffeeController#index >>super: no superclass method `setup'' > > what`s wrong? > > -- > Sorry to my english :(Sorry about that, I''ve fixed that now, please re-install and try again. -- 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 -~----------~----~----~----~------~----~------~--~---