3af639660d
It sounds confusing, I know, but Rails uses the :as option as prefix with the current action, when the option is given, otherwise it uses dom_class, which behaves differently. For instance, given a @user object: With :as => 'user' => 'user_new' or 'user_edit' Without :as, uses dom_class => 'new_user' or 'edit_user' Weird huh? =) |
||
---|---|---|
.. | ||
builder_test.rb | ||
form_helper_test.rb |