Module: Asirra::ViewHelpers

Defined in:
lib/asirra/view_helpers.rb

Instance Method Summary collapse

Instance Method Details

#asirra_error_tagObject



11
12
13
# File 'lib/asirra/view_helpers.rb', line 11

def asirra_error_tag
  render "asirra/error_tag"
end

#asirra_tags(options = {}) ⇒ Object



5
6
7
8
9
# File 'lib/asirra/view_helpers.rb', line 5

def asirra_tags(options={})
  @asirra_enlarged_position = options.has_key?(:enlarged_position) ? options[:enlarged_position] : "top"
  @asirra_cells_per_row = options.has_key?(:cells_per_row) ? options[:cells_per_row] : "6"
  render "asirra/js_tag"
end