[ANN] Toffee Plugin 0.2 - Automated Admin Screens

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

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 F. [email protected]

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 F. [email protected]

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!

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 :frowning:

David,

Thanks, I’ll give it a shot.

On Apr 5, 10:05 am, David F. <rails-mailing-l…@andreas-

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 :frowning:

Sorry about that, I’ve fixed that now, please re-install and try again.