Sha256: 4fda1a6d9ec856e12d1dbb467b290eb158b4f61e7ab62afd487b3c25c21fe8af
Contents?: true
Size: 472 Bytes
Versions: 1
Compression:
Stored size: 472 Bytes
Contents
module ApplicationHelper def submit_or_return_to(return_path) haml_tag :table, {:style => 'padding-top:30px'} do haml_tag :tr do haml_tag :td, {:width => '180px'} do haml_tag :input, {:type => 'submit', :value => 'Save'} end haml_tag :td do haml_tag :a, "Cancel", {:href => return_path} end end end end def focus(input) haml_tag :script, "$(function(){$('##{input}').focus()})" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
authengine-0.0.2 | lib/application_helper.rb |