Personal tools
You are here: Home Software Toffee
Navigation
Log in


Forgot your password?
 
Document Actions

Toffee

RSS Feed Category: Ruby on Rails — Other products by this author
Automatic admin screens for Rails Applications

Current release: Toffee 0.2

Released 2007-03-29 — tested with Rails 1.2

Some improvements to the earlier version, and I've added a toffee_list helper so Toffee-style lists can be inserted anywhere in an application.

List all releases… Full release announcement…

Experimental releases

There are no experimental releases available at the moment.

Project Description

Project resources

Allows you to have automated admin screens for any of your Rails Models without the need for extra controllers or views.

Installation

1. In the root of your Rails application do...

  script/plugin install http://svn.open.bluefountain.com/toffee

2. Add the following line in config/routes.rb before the default route...

  map.from_plugin :toffee

NOTE: This will automatically route any URL like 'admin/my_model' to the toffee controller. If you want a different prefix, add this line instead...

  map.connect 'my_prefix/:model/:action/:id', :controller => 'toffee'

3. In app/helpers/application_helper.rb add the following line...

  include ToffeeHelper

4. In the <HEAD> section of your application layout file, add the following...

  <%= setup_toffee_includes %>

For further information on using Toffee in your Rails application, check out the guides.


by dfitzgibbon last modified 2007-05-17 18:15

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: