Module: Admin::PublicHelper
- Defined in:
- app/helpers/admin/public_helper.rb
Instance Method Summary collapse
-
#quick_edit(*args) ⇒ Object
Quick edit usage:.
Instance Method Details
#quick_edit(*args) ⇒ Object
Quick edit usage:
<%= quick_edit(:message => "Edit this article", :path => "articles/edit/#{@article.id}") %>
If user is logged in Typus, a link will appear on the top/right of the pages where you insert this helper.
13 14 15 16 17 18 19 20 21 22 23 |
# File 'app/helpers/admin/public_helper.rb', line 13 def quick_edit(*args) = args. <<-HTML <script type="text/javascript"> document.write('<script type="text/javascript" src="#{admin_quick_edit_path}?#{.to_query}" />'); </script> HTML end |