Skip to Content Skip to Search

Action View

Action View is a framework for handling view template lookup and rendering, and provides view helpers that assist when building HTML forms, Atom feeds and more. Template formats that Action View handles are ERB (embedded Ruby, typically used to inline short Ruby snippets inside HTML), and XML Builder.

You can read more about Action View in the Action View Overview guide.

Download and installation

The latest version of Action View can be installed with RubyGems:

$ gem install actionview

Source code can be downloaded as part of the Rails project on GitHub:

License

Action View is released under the MIT license:

Support

API documentation is at

Bug reports for the Ruby on Rails project can be filed here:

Feature requests should be discussed on the rails-core mailing list here:

Namespace
Methods
E
G
V

Constants

ENCODING_FLAG = '#.*coding[:=]\s*(\S+)[ \t]*'
 
TemplateError = Template::Error
 

Class Public methods

eager_load!()

# File actionview/lib/action_view.rb, line 93
def self.eager_load!
  super
  ActionView::Helpers.eager_load!
  ActionView::Template.eager_load!
end

gem_version()

Returns the currently loaded version of Action View as a Gem::Version.

# File actionview/lib/action_view/gem_version.rb, line 5
def self.gem_version
  Gem::Version.new VERSION::STRING
end

version()

Returns the currently loaded version of Action View as a Gem::Version.

# File actionview/lib/action_view/version.rb, line 7
def self.version
  gem_version
end