Sha256: 9a3a0953db7174377f4459be6c3fcbda634dfdd4b6f779b06bf2160903466a48

Contents?: true

Size: 1.17 KB

Versions: 9

Compression:

Stored size: 1.17 KB

Contents

<dl>
  <dt>Environment:</dt>
  <dd id="environment"><%= Rails.env %></dd>

  <dt>Draper view context controller:</dt>
  <dd id="controller"><%= Draper::ViewContext.current.controller.class %></dd>

  <dt>Posted:</dt>
  <dd id="posted_date"><%= post.posted_date %></dd>

  <dt>Built-in helpers:</dt>
  <dd id="truncated"><%= post.truncated %></dd>

  <dt>Built-in private helpers:</dt>
  <dd id="html_escaped"><%= post.html_escaped %></dd>

  <dt>Helpers from app/helpers:</dt>
  <dd id="hello_world"><%= post.hello_world %></dd>

  <dt>Helpers from the controller:</dt>
  <dd id="goodnight_moon"><%= post.goodnight_moon %></dd>

  <% unless defined? mailer %>
    <dt>Path with decorator:</dt>
    <dd id="path_with_decorator"><%= post_url(post) %></dd>

    <dt>Path with model:</dt>
    <dd id="path_with_model"><%= post.path_with_model %></dd>

    <dt>Path with id:</dt>
    <dd id="path_with_id"><%= post.path_with_id %></dd>
  <% end %>

  <dt>URL with decorator:</dt>
  <dd id="url_with_decorator"><%= post_url(post) %></dd>

  <dt>URL with model:</dt>
  <dd id="url_with_model"><%= post.url_with_model %></dd>

  <dt>URL with id:</dt>
  <dd id="url_with_id"><%= post.url_with_id %></dd>
</dl>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
draper-4.0.4 spec/dummy/app/views/posts/_post.html.erb
draper-4.0.3 spec/dummy/app/views/posts/_post.html.erb
draper-4.0.2 spec/dummy/app/views/posts/_post.html.erb
draper-4.0.1 spec/dummy/app/views/posts/_post.html.erb
draper-4.0.0 spec/dummy/app/views/posts/_post.html.erb
draper-3.1.0 spec/dummy/app/views/posts/_post.html.erb
draper-3.0.1 spec/dummy/app/views/posts/_post.html.erb
draper-3.0.0 spec/dummy/app/views/posts/_post.html.erb
draper-3.0.0.pre1 spec/dummy/app/views/posts/_post.html.erb