Home > tabulatr-demo

tabulatr-demo

Tabulatr-demo is a project mainly written in RUBY and JAVASCRIPT, it's free.

A demo app for the tabulatr table DSL gem

h1. Tabulatr Demo

This rails app is merely a demo for the Tabulatr gem by Peter Horn and René Sprotte of metaminded and provideal.

h2. What's in here?

  • Examples mainly on the formatting options are in app/views/products/index_formatting.
  • in app/views/products/index_fancy you'll find an bells-and-whistles example.

Some of the more boring views are direct copies of the spec/dummy_app in tabulatr itself.

h3. Data used

We suppose we have a couple of models

  • tags has and belong to many products
  • vendors have many products
  • products belong to vendors and have and belong to many tags

All this is set up if you run

$ rake db:migrate
(in /.../tabulatr-demo)
==  CreateVendors: migrating ==================================================
...

$ rake db:seed (in /.../tabulatr-demo) Creating vendor 0 Creating vendor 1 ...

$ rails s => Booting WEBrick => Rails 3.0.5 application starting in development on http://0.0.0.0:3000 ...

You're then ready to watch the app at http://127.0.0.1:3000. There's a lot of lorem ipsum going on inside ;)

h2. License

Copyright (c) 2010-2011 Peter Horn, Provideal GmbH

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Previous:http2osc