aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * The example in the API docs incorrectly indicated that form_for would use ↵Mark Roghelia2011-05-311-2/+2
| | | | | | | | the same default route for both new and previously persisted records. The default path given in the example would have generated a routing error for new records. form_for actually uses polymorphic_path to determine which route to use based on the state of the record. The example has been updated to reflect the method's actual behavior.
| * Added missing quote in grouped_options_for_select examplediego2011-05-261-1/+1
| |
* | Add backward compatibility for testing cookiesAndrew White2011-06-053-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit restores the ability to assign cookies for testing via @request.env['HTTP_COOKIE'] and @request.cookies, e.g: @request.env['HTTP_COOKIE'] = 'user_name=david' get :index assert_equal 'david', cookies[:user_name] and @request.cookies[:user_name] = 'david' get :index assert_equal 'david', cookies[:user_name] Assigning via cookies[] is the preferred method and will take precedence over the other two methods. This is so that cookies set in controller actions have precedence and are carried over between calls to get, post, etc.
* | Ensure cookie keys are stringsAndrew White2011-06-051-2/+3
| |
* | Allow multiple sources in Sprockets helpersGuillermo Iguaran2011-06-051-28/+34
| |
* | Add missing require for cookies middlewareAndrew White2011-06-041-0/+1
| |
* | Refactor ActionController::TestCase cookiesAndrew White2011-06-044-39/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Assigning cookies for test cases should now use cookies[], e.g: cookies[:email] = 'user@example.com' get :index assert_equal 'user@example.com', cookies[:email] To clear the cookies, use clear, e.g: cookies.clear get :index assert_nil cookies[:email] We now no longer write out HTTP_COOKIE and the cookie jar is persistent between requests so if you need to manipulate the environment for your test you need to do it before the cookie jar is created.
* | Merge pull request #1447 from dmathieu/empty_routePiotr Sarnacki2011-06-011-1/+3
|\ \ | | | | | | Fix creating an empty route on 1.8. Closes #1210
| * | fix creating an empty route on 1.8. Closes #1210Damien Mathieu2011-06-011-1/+3
| | |
* | | Merge pull request #1448 from ernie/attr_internal_requireJosé Valim2011-06-011-0/+2
|\ \ \ | |/ / |/| | Require attr_internal before using in ActionView::Helpers
| * | Require attr_internal before using in ActionView::HelpersErnie Miller2011-06-011-0/+2
| | |
* | | Remove autoload for a couple of constants which don't exist anymorebrainopia2011-05-311-5/+0
| | |
* | | Corrected some typos and American vs. Queen's English issuesLee Reilly2011-05-291-4/+4
| | |
* | | Merge pull request #1203 from dchelimsky/stringify-parameter-values-in-testsJosé Valim2011-05-281-0/+19
|\ \ \ | | | | | | | | Stringify param values in controller tests.
| * | | use to_param (and change method to name accordingly)David Chelimsky2011-05-221-8/+8
| | | | | | | | | | | | | | | | | | | | - exclude Rack::Test::UploadedFile to pass existing tests. Are there any other types we're missing?
| * | | Stringify param values in controller tests.David Chelimsky2011-05-221-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reduces false positives that come from using ints in params in tests, which do not get converted to strings in the tests. In implementations going through rack, they do get converted to strings. - David Chelimsky and Sam Umbach
* | | | fixed asset_paths when called from sprockets for relative_url_rootjacott2011-05-282-11/+7
| | | |
* | | | Merge pull request #1324 from dmathieu/no_error_on_invalid_formatJosé Valim2011-05-261-1/+1
|\ \ \ \ | | | | | | | | | | Don't raise an exception if the format isn't recognized
| * | | | don't raise an exception if the format isn't recognizeddmathieu2011-05-261-1/+1
| | | | | | | | | | | | | | | | | | | | Fixed while traveling to heuruko
* | | | | Merge pull request #1311 from kuldarkrabbi/masterJosé Valim2011-05-251-1/+0
|\ \ \ \ \ | |_|_|_|/ |/| | | | action_view/template/handler.rb has been removed
| * | | | action_view/template/handler has been removedKuldar Krabbi2011-05-251-1/+0
| |/ / /
* | | | Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-05-2523-62/+62
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | Conflicts: actionmailer/lib/action_mailer/base.rb activesupport/lib/active_support/core_ext/kernel/requires.rb
| * | | fix minor spelling mistakes in commentsDmytrii Nagirniak2011-05-231-3/+3
| | | |
| * | | Remove extra white spaces on ActionPack docs.Sebastian Martinez2011-05-2322-53/+53
| | | |
| * | | Fixed documentation for scope with path.Anuj Dutta2011-05-221-2/+2
| | | |
| * | | fixes code highlight in shallow_path exampleDiego Plentz2011-05-191-4/+4
| | | |
* | | | Move SCSS generators and default templates from Rails to the Sass Railtie ↵tomhuda2011-05-241-19/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (d435726312601edb3ba6f97b34f562221f72c1f8). * Sass gem registers a compressor * Sass gem registers generators for assets and scaffold * Create a default stylesheet_engine ("css") for apps that remove the Sass gem
* | | | Change compressor API so that plugins can register default compressors for ↵tomhuda2011-05-241-3/+4
| | | | | | | | | | | | | | | | their stylesheet or JS engines and still allow the user to turn off compression
* | | | corrected the ActionMailer tests which broke due to some code removed from ↵Josh Kalderimis2011-05-251-0/+1
| | | | | | | | | | | | | | | | ActionPack
* | | | removed deprecated methods, and related tests, from ActionPackJosh Kalderimis2011-05-249-108/+3
| | | |
* | | | Redundant condition in compute_asset_host is redundant.Ernie Miller2011-05-241-3/+3
| |_|/ |/| |
* | | Remaining cleanup from changes to AssetTagHelpertomhuda2011-05-244-12/+9
| | |
* | | Make sure that Sprockets::Helpers::RailsHelper can be foundwycats2011-05-232-1/+8
| | |
* | | Merge pull request #1241 from smartinez87/extra-spaceSantiago Pastorino2011-05-231-1/+1
|\ \ \ | | | | | | | | Remove extra white-space on exception message.
| * | | Remove extra white-space on some exception messages.Sebastian Martinez2011-05-231-1/+1
| | | |
* | | | Move the last pockets of Sprockets stuff into the Sprockets directorywycats2011-05-234-23/+15
| | | |
* | | | Move javascript/css helpers into the Sprockets helper and just have them ↵wycats2011-05-232-43/+44
| | | | | | | | | | | | | | | | override the old behavior
* | | | Start moving some logic from being embedded in AV into the Rails Sprockets ↵wycats2011-05-234-62/+58
|/ / / | | | | | | | | | extensions
* | | Replace references to ActiveSupport::SecureRandom with just SecureRandom, ↵Jon Leighton2011-05-234-4/+4
| | | | | | | | | | | | and require 'securerandom' from the stdlib when active support is required.
* | | Restructure TemplateAssertions-related code to eliminate circular requires.wycats2011-05-223-20/+13
| | | | | | | | | Also, no need to include dependencies in AS::Concerns inside included blocks.
* | | Make :status an attr_reader to avoid unnecessary warning when replacing status=wycats2011-05-221-1/+2
| | |
* | | Merge branch '3-1-stable'Joshua Peek2011-05-221-15/+47
|\ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: actionpack/actionpack.gemspec activemodel/activemodel.gemspec
| * | | Add debug_asset supportJoshua Peek2011-05-221-15/+47
| | |/ | |/|
* | | Edited actionpack/lib/action_view/helpers/form_helper.rb via GitHubJosé Valim2011-05-221-0/+1
| | |
* | | Merge pull request #1189 from jmbejar/7c562d5e460d97b18e4f3367b3cfb13401732920José Valim2011-05-221-0/+19
|\ \ \ | |/ / |/| | Add method FormHelper#fields_for_with_index
| * | Add method fields_for_with_index to FormHelperJorge Bejar2011-05-211-0/+19
| | |
* | | Bump versions for rc1David Heinemeier Hansson2011-05-211-1/+1
| | |
* | | Correct example and expand on description of :shallow option for resourcesAndrew White2011-05-211-3/+7
| | |
* | | Merge pull request #1177 from joshk/ruby19_warningsJosé Valim2011-05-202-2/+0
|\ \ \ | |/ / |/| | Fixed some ruby 19 warnings
| * | fixed some ruby 19 warnings, including circular requires and variable name reuseJosh Kalderimis2011-05-212-2/+0
| | |