Sha256: 55ab0021b0bb2ad9f42399320aa22db3a2e1f63ef7b06f81d80aeba98a6e2f0e

Contents?: true

Size: 1.42 KB

Versions: 4

Compression:

Stored size: 1.42 KB

Contents

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

  <dt>StrongPresenter view context controller:</dt>
  <dd id="controller"><%= StrongPresenter::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>

  <dt>Path with presenter:</dt>
  <dd id="path_with_presenter"><%= post_path(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>

  <dt>URL with presenter:</dt>
  <dd id="url_with_presenter"><%= 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>

  <% post.presents :permit_to_present, :unpermitted do |key, value| %>
    <dt><%= key.to_s.humanize %>:</dt>
    <dd id="<%= key.to_s %>"><%= value %></dd>
  <% end %>

  <% post.present :peek_a_boo do |value| %>
    <dt>Peek A Boo:</dt>
    <dd id="peekaboo"><%= value %></dd>
  <% end %>
</dl>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
strong_presenter-0.2.2 spec/dummy/app/views/posts/_post.html.erb
strong_presenter-0.2.1 spec/dummy/app/views/posts/_post.html.erb
strong_presenter-0.2.0 spec/dummy/app/views/posts/_post.html.erb
strong_presenter-0.1.0 spec/dummy/app/views/posts/_post.html.erb