Module: Vitrage::ActionViewExtension
- Defined in:
- lib/vitrage/helpers/action_view_extention.rb
Overview
Helpers
Instance Method Summary collapse
-
#edit_vitrage_for(owner) ⇒ Object
A helper that renders the show view of vitrage.
-
#show_vitrage_for(owner) ⇒ Object
A helper that renders the show view of vitrage.
Instance Method Details
#edit_vitrage_for(owner) ⇒ Object
A helper that renders the show view of vitrage
<%= edit_vitrage_for @page %>
16 17 18 |
# File 'lib/vitrage/helpers/action_view_extention.rb', line 16 def edit_vitrage_for(owner) render partial: 'vitrage/edit', locals: { owner: owner } end |
#show_vitrage_for(owner) ⇒ Object
A helper that renders the show view of vitrage
<%= show_vitrage_for @page %>
8 9 10 |
# File 'lib/vitrage/helpers/action_view_extention.rb', line 8 def show_vitrage_for(owner) render partial: 'vitrage/show', locals: { owner: owner } end |