aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/erb/form_for_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Remove deprecated form_for with strings or symbols"José Valim2010-11-181-2/+1
| | | | | | | | | | | | | | | | This code was not deprecated. What was deprecated is the following: form_for(:foo, @foo) Which now should be rewritten as: form_for(@foo, :as => :foo) The following format is valid: form_for(:foo) This reverts commit be797750e6ce866ea08307f63bf35304a965c8d4.
* Remove deprecated form_for with strings or symbolsLeonardo Capillera2010-11-181-1/+2
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Fix several known web encoding issues:wycats2010-06-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * Specify accept-charset on all forms. All recent browsers, as well as IE5+, will use the encoding specified for form parameters * Unfortunately, IE5+ will not look at accept-charset unless at least one character in the form's values is not in the page's charset. Since the user can override the default charset (which Rails sets to UTF-8), we provide a hidden input containing a unicode character, forcing IE to look at the accept-charset. * Now that the vast majority of web input is UTF-8, we set the inbound parameters to UTF-8. This will eliminate many cases of incompatible encodings between ASCII-8BIT and UTF-8. * You can safely ignore params[:_snowman_] TODO: * Validate inbound text to confirm it is UTF-8 * Combine the whole_form implementations in form_helper_test and form_tag_helper_test
* changed from :object_name to :as on form_for apiSantiago Pastorino2010-04-051-1/+1
|
* Modify assert_template to use notifications. Also, remove ↵Carlhuda2010-03-171-0/+11
ActionController::Base#template since it is no longer needed.