A demo app for the tabulatr table DSL gem
Ruby JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib/tasks
public
script
vendor/plugins
.gitignore
Gemfile
Gemfile.lock
README.textile
Rakefile
config.ru

README.textile

Tabulatr Demo

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

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.

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 ;)

License

Copyright © 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.