【文件属性】:
文件名称:blankable:将空白面板添加到索引视图
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-13 00:41:40
Ruby
可消隐的
将空白面板添加到索引视图
安装
将此行添加到您的应用程序的Gemfile中:
gem 'blankable'
然后执行:
$ bundle
或将其自己安装为:
$ gem install blankable
用法
# Customers Controller
class CustomersController < ApplicationController
def index
@customers = Customer . all
respond_with ( @customers )
end
end
# views/customers/_list.html.haml
% table
% tr
% th Name
% th Business Phone
% th Mobile Phone
% th Addres
【文件预览】:
blankable-develop
----.gitignore(161B)
----CHANGELOG.md(444B)
----LICENSE.txt(1KB)
----README.md(1KB)
----lib()
--------blankable.rb(138B)
--------blankable()
----blankable.gemspec(847B)
----Gemfile(94B)
----Rakefile(28B)