Please enable JavaScript.
Coggle requires JavaScript to display documents.
ActionView Overview (Helpers provided by Action View (AssetTagHelper :…
ActionView Overview
html outputs is a composition of three rails element:
Templates, Partials and Layouts
Templates
erb
: embedded ruby and html
builder
: xmlmarkup
Jbuilder
: json generator
Partials
naming partials
with underscore : _partial.html.erb
render partials with options
partials & locals
object & as
collection
spacer_template
Partials Layouts
Layouts
be used to render common view template
Helpers provided by Action View
AssetTagHelper
: provide methods for generating HTML that link views to assets such as images, js, css and feeds.
image
path, url, tag
js
include_tag, path, url
stylesheet
link_tag, path, url
AtomFeedHelper
CaptureHelper
: extract part of template into a variable
content_for
capture
DataHelper
FormHelper
: build form with models
form_for
: create a form for model instance
OptionsHelper
TagHelper
NumberHelper
SanitizeHelper
: a set of methods for scrubbing text of undesired HTML elements.
View Path
: