Module CrumbTagsHelper
In: vendor/plugins/crumblr/lib/crumb_tags_helper.rb

Methods

Public Instance methods

crumb_tags renders 2 hidden tags named _crumb and _timestamp that can be verified by action controller filter verify_crumb to ensure that the form submission came from a trusted source.

The value of _crumb is set by issue_crumb.

[Source]

    # File vendor/plugins/crumblr/lib/crumb_tags_helper.rb, line 8
 8:   def crumb_tags
 9:     timestamp = Time.now().to_i
10:     return "
11: #{tag(:input, {:type => 'hidden', :name => '_crumb', :value => issue_crumb(timestamp)})}
12: #{tag(:input, {:type => 'hidden', :name => '_timestamp', :value => timestamp})}"
13:   end

[Validate]