bbatsov/rails-style-guide — Issue #31: when to use parentheses
Author: sfjuggernaut
Created: 2012-02-09 19:33:49+00:00
State: open

I like the guideline around "Omit parentheses around parameters for methods that are part of an internal DSL". This is pretty straight forward for most of the main app code. What have people found for the following....

testing:
- creating your own DSL for testing
- using Capybara - their own examples bounce back and forth (see: http://rubydoc.info/github/jnicklas/capybara/master/Capybara/Node/Actions)
- factory girl: Factory(:user) vs. Factory :user

views:
- link_to
- form_for / form_tag
- submit_tag
- etc.