Skip to content
Browse files

Cleaned up some comments

  • Loading branch information...
1 parent a0f9745 commit 61940497c1d8476abb6008301269dbc190f649e7 Simon Chiu committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/formtastic.rb
View
2 lib/formtastic.rb
@@ -277,7 +277,7 @@ def buttons(*args, &block)
# <%= form.commit_button :cancel => root_path %> will produce
# <input name="commit" type"submit" value="Save [model name]"> or <a href="[root path]">Cancel</a>
#
- def commit_button(*args) #(value = save_or_create_commit_button_text, options = {})
+ def commit_button(*args)
options = args.extract_options!
options[:label] ||= save_or_create_commit_button_text
content = template.submit_tag(options[:label])

0 comments on commit 6194049

Please sign in to comment.
Something went wrong with that request. Please try again.