Skip to content

Commit

Permalink
Wrapped cancel link in a span
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Firth-McCoy committed Mar 16, 2011
1 parent 5b4f0b3 commit 90424ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/better_form/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def submit(options = {})
value = options.delete(:value)
cancel_url = options.delete(:cancel)
if cancel_url
super(value, options) + 'or' + link_to('Cancel', cancel_url)
super(value, options) + "<span class='cancel'>or #{link_to('Cancel', cancel_url)}</span>".html_safe
else
super(value, options)
end
Expand Down

0 comments on commit 90424ed

Please sign in to comment.