Skip to content

Commit

Permalink
Add notice about not being maintained
Browse files Browse the repository at this point in the history
  • Loading branch information
jgdavey committed Jan 30, 2014
1 parent b8764b4 commit f134ec9
Showing 1 changed file with 8 additions and 43 deletions.
51 changes: 8 additions & 43 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

http://travis-ci.org/jgdavey/tabletastic.png

== NOTICE: No longer maintained

I haven't used this gem in years, and am no longer actively contributing
to it. I am more than willing to give commit rights to anyone that wants
to maintain it.

== Introduction

Inspired by the projects table_builder and formtastic,
I realized how often I created tables for my active record collections.
This is my attempt to simplify this (the default scaffold):
Expand Down Expand Up @@ -33,49 +41,6 @@ into this:
and still output the same effective results, but with all the semantic
goodness that tabular data should have, i.e. a +thead+ and +tbody+ element.


== NOTICE: Rails 3 only!

As of version 0.2.0, this project is <b>no longer compatible with Rails 2</b>.
To use, make sure you're using the latest release of Rails 3.

Also, the new Rails 3 idiom is for blocks in erb templates to be use <code><%= %></code>, so if you're
upgrading, you MUST now use the <code><%= %></code> erb helpers when you call +table_for+.

For example:

<%= table_for(@people) do |t|
t.data
end %>

The following would also be valid:

<%= table_for(@people) do |t| %>
<%= t.data %>
<% end %>

Or in HAML:

= table_for(@people) do |t|
= t.data

But, following the block helper conventions, the following would NOT be okay

<!-- Don't do this! -->
<%= table_for(@people) do |t| %>
<% t.data %>
<% end %>

Or, in HAML:

-# Don't do this!
= table_for(@people) do |t|
- t.data

This is because the +data+ method has output, and can optionally be called with a block.

For more information about Rails 3 and Block helpers and the new conventions, check out {the Railscasts episode about ERB blocks}[http://railscasts.com/episodes/208-erb-blocks-in-rails-3]

== Installation

In your Rails project, Gemfile:
Expand Down

0 comments on commit f134ec9

Please sign in to comment.