Sha256: 89af3d01a872afdab70e84161b05cb648f23d162a90d20f4d61c6b1b47840e84
Contents?: true
Size: 726 Bytes
Versions: 1
Compression:
Stored size: 726 Bytes
Contents
##==NS Service Pack使用指南 *1 在你的rails3项目Gemfile中引入 gem 'ns_service_pack' *2 启动控制台 rails c,运行命令 NsServicePack.install *3 配置项目中的常量数据 *4 配置项目的controllers和models 4.1)在ApplicationController子类,如: class AddressesController < ApplicationController ... def model_class #引用的模型类,是ActiveRecord的子类 end def index #定义@conds实例变量,组织查询的条件,默认支持分页 end ... end 4.2)在ActiveRecord::Base子类中,如Customer class Customer < ActiveRecord::Base ... def self.get_map_value(k, v) #定制各字段值的业务显示格式 #value mapping end ... end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ns_service_pack-0.0.3 | README |