From f04a7687d1bb97e07ce8ff533970de85a7be844c Mon Sep 17 00:00:00 2001 From: Benjamin Linton Date: Wed, 6 Aug 2014 16:13:14 -0500 Subject: [PATCH] Improve README button example code [ci skip] --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index a1e588bb..345786de 100644 --- a/README.md +++ b/README.md @@ -429,6 +429,12 @@ All web forms need buttons, right? **Simple Form** wraps them in the DSL, acting The above will simply call submit. You choose to use it or not, it's just a question of taste. +The button method also accepts optional parameters, that are delegated to the underlying submit call: + +```erb +<%= f.button :submit, "Custom Button Text", class: "my-button" %> +``` + ### Wrapping Rails Form Helpers Say you wanted to use a rails form helper but still wrap it in **Simple Form** goodness? You can, by