Module: SolveMedia::ViewHelpers
- Defined in:
- lib/solvemedia/view_helpers.rb
Instance Method Summary collapse
-
#solvemedia_puzzle(options = {}) ⇒ String
View helper to insert the Solve Media puzzle HTML.
Instance Method Details
#solvemedia_puzzle(options = {}) ⇒ String
View helper to insert the Solve Media puzzle HTML.
Can be set to use either the standard version or the AJAX version. For more complex uses of the AJAX version, such as multi-puzzle, you should not use this method and instead use purpose-written Javascript in your view.
Calls SolveMedia.puzzle internally.
25 26 27 |
# File 'lib/solvemedia/view_helpers.rb', line 25 def solvemedia_puzzle(={}) return SolveMedia.puzzle(CKEY, ).html_safe end |