Sha256: e6e989e7a4eaa43e3ec67d08200c17af734598d534354c88aa16ed765052cd3c
Contents?: true
Size: 500 Bytes
Versions: 3
Compression:
Stored size: 500 Bytes
Contents
# This helper abstracts the several markup methods # into one method `markup()`. # # For example, on a Page, use: # # <div id="content"> # <%= markup(@page.content) %> # </div> # module MarkupHelper def markup(text) markdown replace_quick_link_tags text end end # In order to use the markup helper method with best_in_place's :display_with argument, # the ActionView::Base has to include the markup method. # module ActionView class Base include MarkupHelper end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
your_platform-1.0.1 | app/helpers/markup_helper.rb |
your_platform-1.0.0 | app/helpers/markup_helper.rb |
your_platform-0.0.2 | app/helpers/markup_helper.rb |