Skip to content

absperf/table_for2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TableFor2

Makes tables easy

Example

table_for @posts[0..100] do |t| 

  t.column :title

  t.column do |c|
    c.title = "Body"
    c.cell_attributes[:class] << 'text'
    c.content do |post|
      link_to truncate(post.text), post_path(post)
    end
  end

  t.column :default_actions, :only => [:show, :edit]

end

Copyright (c) 2007 Paul Sadauskas @ Absolute Performance, Inc

pjs@absolute-performance.com

Released under the MIT license

About

Rails view helper for making tables easy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages