Skip to content

Commit

Permalink
Remove parentheses for consistency with f.input
Browse files Browse the repository at this point in the history
  • Loading branch information
haines committed Jan 16, 2012
1 parent a8e56b7 commit f72a6f3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions lib/formtastic/helpers/action_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ module ActionHelper
# <%= semantic_form_for @post do |f| %>
# ...
# <%= f.actions do %>
# <%= f.action(:submit) %>
# <%= f.action(:reset) %>
# <%= f.action(:cancel) %>
# <%= f.action :submit %>
# <%= f.action :reset %>
# <%= f.action :cancel %>
# <% end %>
# <% end %>
#
Expand Down
8 changes: 4 additions & 4 deletions lib/formtastic/helpers/actions_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ module Helpers
# <%= semantic_form_for @post do |f| %>
# ...
# <%= f.actions do %>
# <%= f.action(:submit)
# <%= f.action(:cancel)
# <%= f.action :submit
# <%= f.action :cancel
# <% end %>
# <% end %>
#
Expand Down Expand Up @@ -62,8 +62,8 @@ module ActionsHelper
# <% semantic_form_for @post do |f| %>
# ...
# <% f.actions do %>
# <%= f.action(:submit) %>
# <%= f.action(:cancel) %>
# <%= f.action :submit %>
# <%= f.action :cancel %>
# <% end %>
# <% end %>
#
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/templates/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
<%% end %>

<%%= f.actions do %>
<%%= f.action(:submit, :as => :input) %>
<%%= f.action :submit, :as => :input %>
<%% end %>
<%% end %>

0 comments on commit f72a6f3

Please sign in to comment.