aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
Commit message (Collapse)AuthorAgeFilesLines
* port_string bought back to life as it is part of the public apiJosh Kalderimis2010-11-241-3/+8
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* No need to return anythingNeeraj Singh2010-11-241-1/+0
|
* copy-edits RDoc of 2fe43b6Xavier Noria2010-11-231-2/+3
|
* Remove bazillion warnings from AP suite.José Valim2010-11-231-1/+1
|
* Speed up subdomain and domain calculus.José Valim2010-11-231-14/+6
|
* :subdomain, :domain and :tld_length options can now be used in url_for, ↵Josh Kalderimis2010-11-234-27/+80
| | | | | | allowing for easy manipulation of the host during link generation. Signed-off-by: José Valim <jose.valim@gmail.com>
* add respond_to? to ActionDispatch::Integration::RunnerSven Fuchs2010-11-221-0/+4
| | | | since Runner uses method_missing to delegate to the integration session it also should define respond_to? accordingly
* remove select, collect and then inject withNeeraj Singh2010-11-221-1/+1
| | | | | | something better Signed-off-by: José Valim <jose.valim@gmail.com>
* string include method is 10x faster than creatingNeeraj Singh2010-11-221-1/+1
| | | | | | a new regex object every single time Signed-off-by: José Valim <jose.valim@gmail.com>
* Compile regex only onceNeeraj Singh2010-11-221-3/+5
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* implement code that handles text/*, appplication/*,Neeraj Singh2010-11-221-1/+16
| | | | | | and image/* Signed-off-by: José Valim <jose.valim@gmail.com>
* declare regex as a constantNeeraj Singh2010-11-221-1/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* do not assume that there is no space betweenNeeraj Singh2010-11-221-1/+1
| | | | | | leading */* and comma Signed-off-by: José Valim <jose.valim@gmail.com>
* current code ignores http header "Accept" if itNeeraj Singh2010-11-221-1/+1
| | | | | | | | | | | has ....,*/* . It is possible to a device to send request such that */* appear at the beginning of the "Accept" header. This patch ensures that "Accept" header is ignored for such cases too. Signed-off-by: José Valim <jose.valim@gmail.com>
* Remove unused constantSantiago Pastorino2010-11-221-2/+0
|
* There's no need for ternary op hereSantiago Pastorino2010-11-221-1/+1
|
* Remove unneeded metaprogramming and method generation in favor of direct ↵Santiago Pastorino2010-11-221-24/+10
| | | | definition
* use_accept_header is no longer supportedNeeraj Singh2010-11-211-1/+1
|
* Mention the case that `render` will return nil if given `:collection` is nil ↵Prem Sichanugrist2010-11-211-0/+5
| | | | or empty when rendering partial.
* class inheritable attributes is used no more! all internal use of class ↵Josh Kalderimis2010-11-203-6/+8
| | | | | | inheritable has been changed to class_attribute. class inheritable attributes has been deprecated. Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix indentationSantiago Pastorino2010-11-201-24/+23
|
* Avoid range object creationSantiago Pastorino2010-11-201-1/+1
|
* Fix AssetIncludeTag ensuring that files are in the wrong directory [#6015 ↵Henning Koch2010-11-191-3/+3
| | | | | | state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Fix indentationSantiago Pastorino2010-11-191-1/+1
|
* Don't merge just directly add to the action to the :partial keySantiago Pastorino2010-11-191-1/+1
|
* Useless assignationSantiago Pastorino2010-11-191-1/+1
|
* Revert "Remove deprecated form_for with strings or symbols"José Valim2010-11-181-3/+9
| | | | | | | | | | | | | | | | 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-9/+3
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* delegating path and open to internal tempfileAaron Patterson2010-11-181-2/+8
|
* Add config.action_controller.include_all_helpers, by default it is set to true.Piotr Sarnacki2010-11-182-2/+5
| | | | | | | In older rails versions there was a way to use only helpers from helper file corresponding to current controller and you could also include all helpers by saying 'helper :all' in controller. This config allows to return to older behavior by setting it to false.
* Pass the view object as parameter to the handler. Useful if you need to ↵José Valim2010-11-171-1/+2
| | | | access the lookup context or other information when compiling the template.
* Anchors should be allowed on constraints that are not on path segmentsCarl Lerche2010-11-161-9/+12
|
* Update the version.rb files to include a PRE partCarl Lerche2010-11-161-2/+2
|
* Brought the domain method in AD http url inline with subdomain where ↵Josh Kalderimis2010-11-161-1/+2
| | | | @@tld_length is used by default. Also set the default value of @@tld_length to 1.
* changed asset_timestamps_cache to asset_ids_cache, added an rdoc comment to ↵Josh Kalderimis2010-11-162-17/+21
| | | | the new public api, and updated the railtie
* corrected the AV railtie to use the new home for cache_asset_timestamps, and ↵Josh Kalderimis2010-11-164-75/+47
| | | | merged asset id caching and asset paths together.
* reorganised the the common asset helpers module into a class and have it ↵Josh Kalderimis2010-11-166-125/+128
| | | | include the id caching module, this class is now shared from the view instance to the asset include tag helpers (js and css)
* incorporated most of the feedback from JoséJosh Kalderimis2010-11-166-288/+279
|
* reduced duplication between the javascript and stylesheet asset tag methods, ↵Josh Kalderimis2010-11-168-264/+312
| | | | also split the asset id caching methods into a separate module for easy inclusion and use by the asset include tag class and base asset tag helpers
* separated the asset id methods to a separate module, removed some dupliation ↵Josh Kalderimis2010-11-166-413/+486
| | | | with the various path methods, and moved the base asset tag methods to a base module so the asset id module can play nice with the path generation
* split the javascript and stylesheet tag helpers into separate files as a ↵Josh Kalderimis2010-11-163-313/+348
| | | | precusor before removing the duplication between the two
* rejecting blank stringsAaron Patterson2010-11-151-2/+2
|
* reduce method callsAaron Patterson2010-11-151-4/+4
|
* make sure we are only doing sanity checking against regular expressionsAaron Patterson2010-11-151-1/+1
|
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2010-11-152-9/+230
|\
| * Merge branch 'master' of github.com:lifo/docrailsRyan Bigg2010-11-151-0/+18
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'master' of github.com:lifo/docrails: Getting Started guide: remove calls to f.error_messages as it has been removed from Rails deliver_* is no more removed unnecessary indentation added note with example for using flash in redirection corrected sample code to clear @_current_user class variable also the partial option is not required for simple partial rendering colorize_logging is a Rails General Configuration option not a specific option of ActiveRecord Fixed the name of the 'generator option' this reads better, i don't know what the other 'so on' are, doesn't help reader imho added missing word to clear up meaning in my previous commit Add a note to TextHelpers making explicit their default behavior of not escaping but sanitizing. removed indentation, for code style consistency and readibility Use Rails.logger, not ActiveRecord::Base.logger removed etc. not require added missing space and minor rewording corrected to Rails 3 syntax for declaring resources Fixes ActionMailer example error
| | * Add a note to TextHelpers making explicit their default behavior of not ↵José Valim2010-11-081-0/+18
| | | | | | | | | | | | escaping but sanitizing.
| * | Document the constraints methodRyan Bigg2010-11-141-1/+55
| | |
| * | Add documentation for :path_names option on resourcesRyan Bigg2010-11-131-0/+8
| | |
| * | See the scope method for documentation for namespace's shallow_path optionRyan Bigg2010-11-131-0/+3
| | |