aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
Commit message (Collapse)AuthorAgeFilesLines
* Allow asset tag helper methods to accept :digest => false option in order to ↵Santiago Pastorino2011-09-145-10/+11
| | | | completely avoid the digest generation.
* Fix asset_path relative_url_root methodSantiago Pastorino2011-09-131-3/+5
|
* always rewrite_relative_url_rootSantiago Pastorino2011-09-131-1/+1
|
* Remove odd asignationGuillermo Iguaran2011-09-121-1/+0
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2011-09-081-2/+2
|\
| * Fix grammar for content_tag_for and div_for docs.Hendy Tanata2011-09-051-2/+2
| |
* | Merge pull request #2872 from sikachu/content_tag_html_safeSantiago Pastorino2011-09-051-1/+1
|\ \ | | | | | | Make sure that result from content_tag_for with collection is html_safe
| * | Make sure that result from content_tag_for with collection is html_safePrem Sichanugrist2011-09-051-1/+1
| | | | | | | | | Thank you @spastorino for catching the empty test in b84cee0, as I totally forgot that I still have to make it html_safe.
* | | Merge pull request #2815 from avakhov/current-page-non-get-requestsSantiago Pastorino2011-09-051-0/+8
|\ \ \ | | | | | | | | current_page? returns false for non-GET requests
| * | | current_page? returns false for non-GET requestsAlexey Vakhov2011-09-021-0/+8
| | | |
* | | | Merge pull request #2799 from tomstuart/3-1-stableSantiago Pastorino2011-09-051-3/+3
| |/ / |/| | | | | | | | Never return stored content from content_for when a block is given
* | | if ... nil? is more expensive than unlessMilan Dobrota2011-09-043-5/+5
| |/ |/|
* | Make `content_tag_for` and `div_for` accepts the array of recordsPrem Sichanugrist2011-09-041-5/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So instead of having to do this: @items.each do |item| content_tag_for(:li, item) do Title: <%= item.title %> end end You can now do this: content_tag_for(:li, @items) do |item| Title: <%= item.title %> end
* | Improve examples: use each instead of for...inGabe Berke-Williams2011-08-311-1/+1
|/
* Tiny refactorSantiago Pastorino2011-08-251-4/+7
|
* Merge pull request #2491 from waynn/fix_symbolSantiago Pastorino2011-08-251-2/+2
|\ | | | | fix destructive stringify_keys for label_tag
| * fix destructive stringify_keys for label_tagWaynn Lue2011-08-111-2/+2
| |
* | Revert "Simplify JavaScriptHelper#escape_javascript"Santiago Pastorino2011-08-241-4/+6
| | | | | | | | | | | | This commit broke the build without any improvement. This reverts commit eb0b71478ad4c37fdc4ec77bf2cf7c6b65dd36c4.
* | Simplify JavaScriptHelper#escape_javascriptDaniel Schierbeck2011-08-241-7/+6
| | | | | | | | | | | | Use the Linus-style conditional. Also fix the documentation slightly. Signed-off-by: Andrew White <andyw@pixeltrix.co.uk>
* | Ensure regexp and hash key are UTF-8Andrew White2011-08-231-3/+10
| |
* | fix escape_javascript for unicode character \u2028.Teng Siong Ong2011-08-211-2/+3
| |
* | Use typewriter styling on url_for in documentationasmega2011-08-211-1/+1
| |
* | minor details revised in a gsubXavier Noria2011-08-181-1/+1
| | | | | | | | | | | | | | | | | | Regexps have a construct to express alternation of characters, which is character classes. In addition to being the most specific idiom to write this pattern, it reads better without the backslashes. Also, it is better not to use a capture if none is needed. As a side-effect of these changes, the gsub is marginally faster, but speed is not the point of this commit.
* | Properly escape glob characters.Aaron Patterson2011-08-161-3/+12
| |
* | We need [] method here. previously it's an array.Arun Agrawal2011-08-131-0/+4
| |
* | Remove 'parameters_for_url' parameter from 'form_tag' method signatureGonzalo Rodriguez and Leonardo Capillera2011-08-101-4/+4
| | | | | | | | | | If you use that parameter it will end calling to url_for with two arguments, which fails because url_for expects only one
* | deprecating process_view_pathsAaron Patterson2011-08-092-1/+3
| |
* | just use map and case / when rather than modifying the iterating arrayAaron Patterson2011-08-091-5/+8
| |
* | only typecast what we need to typecastAaron Patterson2011-08-091-11/+9
| |
* | Favor composition over inheritance.Aaron Patterson2011-08-091-6/+48
| |
* | Just remove the sort_locals methodAaron Patterson2011-08-091-12/+1
| |
* | the freeze trick does nothing on arrays used as hash keys.Aaron Patterson2011-08-091-2/+1
| |
* | use functional style to build a list of template objectsAaron Patterson2011-08-091-9/+12
| |
* | refactor the optimized build_query a bitAaron Patterson2011-08-081-8/+3
| |
* | reduce file stats by improving our dir glob patternAaron Patterson2011-08-081-1/+1
| |
* | hash on the template directory in order to improve cache hitsAaron Patterson2011-08-081-2/+3
| |
* | use meaningful names with our variablesAaron Patterson2011-08-081-6/+6
| |
* | use binread to read the filesAaron Patterson2011-08-081-1/+2
| |
* | be explicit about arguments passed aroundAaron Patterson2011-08-081-2/+2
| |
* | Merge pull request #2421 from pivotal-casebook/masterSantiago Pastorino2011-08-041-1/+1
|\ \ | | | | | | Simple_format should not edit it in place. (Fixes https://github.com/rails/rails/issues/1980)
| * | ActionView::Helpers::TextHelper#simple_format should not change the text in ↵Casebook Developer2011-08-041-1/+1
| | | | | | | | | | | | place. Now it duplicates it.
* | | Merge pull request #2356 from waynn/fix_symbolSantiago Pastorino2011-08-041-4/+4
|\ \ \ | |/ / |/| / | |/ fix stringify_keys destructive behavior for most FormTagHelper functions
| * fix stringify_keys destructive behavior for most FormTagHelper functionsWaynn Lue2011-08-031-4/+4
| | | | | | | | add four new tests to verify that the other three methods that called stringify_keys! are fixed. verified that the tests break in master without the code patch. Closes #2355
* | Rename new method to_path to to_partial_path to avoid conflicts with ↵José Valim2011-08-012-7/+7
|/ | | | File#to_path and similar.
* remove redundant calls to stringify_keysWaynn Lue2011-07-291-2/+2
|
* Move the cache to a nested hash which performs better than a hash with array ↵José Valim2011-07-281-11/+17
| | | | as keys.
* Rename class method to_path to _to_path and make it explicit that it is an ↵José Valim2011-07-281-2/+2
| | | | internal method.
* Merge pull request #2034 from Casecommons/to_pathJosé Valim2011-07-282-23/+28
|\ | | | | Allow ActiveModel-compatible instances to define their own partial paths
| * Let ActiveModel instances define partial paths.Grant Hutchins & Peter Jaros2011-07-252-23/+28
| | | | | | | | | | | | Deprecate ActiveModel::Name#partial_path. Now you should call #to_path directly on ActiveModel instances.
* | Improve performance and memory usage for options_for_select with Ruby 1.8.7Christos Zisopoulos2011-07-271-2/+2
| |