Active Scaffold 使用方法小结 希望对大家有用

渲染

  # 渲染UsersController
  render :active_scaffold => 'users'

# 同样是渲染UsersController,这次将标题改为"活跃用户"
  render :active_scaffold => 'users', :label => '活跃用户'

# 按`name`排序,正序(ASC)
  render :active_scaffold => 'users', :sort => "name", :sort_direction => "ASC"

你可能感兴趣的:(Active)