Rails Data Browser plugin

Plugin details

Rails DataBrowser is a Django’s Databrowser like for Rails. With it, you can browse, edit, create, view and delete data from your database through your defined models.

Websitehttp://trac.milk-it.net/open/wiki/DataBrowser Repositoryhttp://svn.milk-it.net/open/data_browser Author Carlos Júnior Tags browser, data LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://svn.milk-it.net/open/data_browser

Add the routes
================
Add this to your config/routes.rb:

map.databrowser


or if you don't want that the DataBrowser's location be /databrowser, you can do:

map.databrowser :root => "db"



To change the base location of your DataBrowser to /db.

To use DataBrowser in development environment only, you can do:

map.databrowser if RAILS_ENV.eql?("development")



Configure your models
===================
By default, DataBrowser will map all your models, if you don't want this, you can configure DataBrowser to map only some models. For this, create and edit a file config/initializers/data_browser.rb:

DataBrowser.models = [User, Message] # add all the models you want to map here


Remember, if you wants that DataBrowser map all your models, you don't need the setup above.

Protect your DataBrowser
====================
If you wants to protect it with a username/password, add this to your initializer:

DataBrowser.protect "username", "password"

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 7 months ago