Action View¶ ↑
Action View 是一个用于处理视图模板查找和渲染的框架,并提供视图助手,用于构建 HTML 表单、Atom feed 等。Action View 处理的 Template 格式包括 ERB(嵌入式 Ruby,通常用于在 HTML 中嵌入简短的 Ruby 代码片段)和 XML Builder。
您可以在 Action View 概览 指南中阅读更多关于 Action View 的信息。
下载与安装¶ ↑
可以使用 RubyGems 安装最新版本的 Action View
$ gem install actionview
源代码可以作为 Rails 项目的一部分在 GitHub 上下载。
许可证¶ ↑
Action View 在 MIT 许可证下发布
支持¶ ↑
API 文档位于:
Ruby on Rails 项目的错误报告可在此处提交:
功能请求应在此处的 rubyonrails-core 论坛上讨论:
命名空间
- 模块 ActionView::CacheExpiry
- 模块 ActionView::Context
- 模块 ActionView::Helpers
- 模块 ActionView::Layouts
- 模块 ActionView::RecordIdentifier
- 模块 ActionView::RenderParser
- 模块 ActionView::Rendering
- 模块 ActionView::RoutingUrlFor
- 模块 ActionView::VERSION
- 模块 ActionView::ViewPaths
- 类 ActionView::AbstractRenderer
- 类 ActionView::Base
- 类 ActionView::Digestor
- 类 ActionView::FileSystemResolver
- 类 ActionView::FixtureResolver
- 类 ActionView::LookupContext
- 类 ActionView::NullResolver
- 类 ActionView::PartialIteration
- 类 ActionView::PartialRenderer
- 类 ActionView::Renderer
- 类 ActionView::Resolver
- 类 ActionView::Template
- 类 ActionView::TemplateDetails
- 类 ActionView::TemplatePath
- 类 ActionView::TestCase
- 类 ActionView::UnboundTemplate
方法
- E
- G
- V
常量
| ENCODING_FLAG | = | '#.*coding[:=]\s*(\S+)[ \t]*' |
| TemplateError | = | Template::Error |
Attributes
| [RW] | render_tracker |
类公共方法
eager_load!() 链接
源代码: 显示 | 在 GitHub 上
# File actionview/lib/action_view.rb, line 97 def self.eager_load! super ActionView::Helpers.eager_load! ActionView::Template.eager_load! end
gem_version() 链接
返回 Action View 当前加载的版本,格式为 Gem::Version。
源代码: 显示 | 在 GitHub 上
# File actionview/lib/action_view/gem_version.rb, line 5 def self.gem_version Gem::Version.new VERSION::STRING end
version() 链接
返回 Action View 当前加载的版本,格式为 Gem::Version。
源代码: 显示 | 在 GitHub 上
# File actionview/lib/action_view/version.rb, line 7 def self.version gem_version end