aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove last TODO.José Valim2009-07-294-8/+3
| | | | Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Add a couple more tests to respond_with.José Valim2009-07-292-11/+46
| | | | Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Added respond_with.José Valim2009-07-293-27/+209
| | | | Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Added tests for respond_to class method.José Valim2009-07-296-3/+73
| | | | Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Ensure that the proper accept header value is set during tests.José Valim2009-07-292-30/+30
| | | | Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Improve request test coverage by adding formats and negotiate_mime tests.José Valim2009-07-291-0/+39
| | | | Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Remove Mime::ALL from Mime::SET.José Valim2009-07-292-2/+5
| | | | Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Refactor even more Responder. Move mime negotiation to request and added ↵José Valim2009-07-293-69/+145
| | | | | | respond_to class method. Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Refactor Responder to only calculate available mime types. Those are sent to ↵José Valim2009-07-292-61/+74
| | | | | | the controller that knows what to do with it (render a block or call default render). Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Add support for error_messages_for(@obj)Yehuda Katz2009-07-284-9/+41
|
* Ignore everything under test/fixtures/public/absolutePratik Naik2009-07-271-1/+1
|
* Merge docrailsPratik Naik2009-07-2566-607/+1765
|
* make pass through error code configurable [#2817 state:resolved]John Duff2009-07-224-5/+41
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Dasherize XML root by default to avoid invalid tags ↵Joshua Peek2009-07-223-1/+16
| | | | "<admin/posts>...</admin/posts>" [#2875 state:resolved]
* Patch to ActiveModel's (and ActiveRecord, by association) XML serialization: ↵John Maxwell2009-07-224-1/+38
| | | | | | If two parameters are present in Procs supplied to to_xml's :procs option, the model being serialized will be passed as the second argument [#2373 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Ruby 1.9.2 compat: name method was renamed to __name__ since MiniTest 1.4.x ↵Akira Matsuda2009-07-211-1/+2
| | | | | | [#2922 state:resolved] Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Ruby 1.9.2 compat: Use File#expand_path for require path because "." will ↵Akira Matsuda2009-07-2110-11/+11
| | | | | | not be included in LOAD_PATH since Ruby 1.9.2 [#2921 state:resolved] Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Clean up validation exampleJoshua Peek2009-07-211-15/+8
|
* So you can require 'activemodel'Joshua Peek2009-07-211-0/+1
|
* AMo conversion helperJoshua Peek2009-07-2115-55/+53
|
* Kill AMo BaseJoshua Peek2009-07-213-11/+5
|
* Improve AMo observing docsJoshua Peek2009-07-211-4/+73
|
* Add wrap_with_notifications helper to AMo observingJoshua Peek2009-07-205-13/+35
|
* Kill AMo ivar attributes helperJoshua Peek2009-07-207-58/+8
|
* Vendor the bundler projectYehuda Katz + Carl Lerche2009-07-2019-0/+940
|
* First effort at new Ajax helpersYehuda Katz2009-07-203-0/+184
|
* Merge branch 'master' of git@github.com:rails/railsYehuda Katz2009-07-1921-101/+268
|\
| * * don't include String#% for Ruby 1.9Sven Fuchs2009-07-182-78/+87
| | | | | | | | | | | | | | | | | | | | * raise a KeyError exception for missing named interpolation args (like Ruby 1.9 does) * raise an ArgumentError when mixing named and unnamed placeholders (like Ruby 1.9 does) * improve docs and comply a bit more w/ Rails names/conventions [#2870 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * Add primary_key option to belongs_to associationSzymon Nowak2009-07-1514-16/+159
| | | | | | | | | | | | [#765 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
| * ActiveSupport Hash optimizations [#2902 state:resolved]Lourens Naude2009-07-154-4/+8
| | | | | | | | Signed-off-by: Carl Lerche <carllerche@mac.com>
| * Use map! instead of map for <association>_idsPratik Naik2009-07-131-2/+2
| |
| * Optimize <association>_ids for hm:t with belongs_to sourcePratik Naik2009-07-132-3/+14
| |
* | Rename ActiveRecordHelper to ActiveModelHelperYehuda Katz2009-07-205-7/+5
| |
* | Finish convert_to_object updatesYehuda Katz2009-07-202-1/+9
| |
* | Update some tests and add a to_model to form helpersYehuda Katz2009-07-207-11/+19
| |
* | Define ActiveModel API ComplianceYehuda Katz2009-07-2017-32/+91
| | | | | | | | | | | | - Define to_model on AR - Define to_model on ActiveModel::APICompliant - Update test fixtures to be API Compliant - Start using to_model in AP
* | Add some simple examples for unconventional AMo and AP useYehuda Katz2009-07-195-0/+89
| |
* | Move default_form_builder to ActionView so it'll work in environments not ↵Yehuda Katz2009-07-192-6/+18
| | | | | | | | using ActionView::Base
* | Separate ActionView::Context so something else can easily be made into an AV ↵Yehuda Katz2009-07-196-13/+49
| | | | | | | | context
* | Simplify required "ActionView compliant" APIYehuda Katz2009-07-195-22/+17
| |
* | Add some missing dependenciesYehuda Katz2009-07-153-0/+4
| |
* | Fix AbstractController::Layouts to work when included directly on a controllerYehuda Katz2009-07-151-0/+1
| |
* | Centralize commonly used parts of AS in ActionController into ↵Yehuda Katz2009-07-156-9/+15
| | | | | | | | action_controller.rb
* | Rename method to a more obvious nameYehuda Katz2009-07-112-4/+4
|/
* Add observing hooks to AResJoshua Peek2009-07-112-2/+62
|
* Integrate AMo XML serializer into ARJoshua Peek2009-07-112-131/+31
|
* Switch scaffolding templates to HTML 5 doctypeJoshua Peek2009-07-106-89/+80
|
* Make it so AR attributes which conflict with object-private methods (e.g. ↵Sam Goldstein2009-07-092-4/+25
| | | | | | | | | system) don't 'randomly' cause NoMethodErrors Previously if you called this attribute before others, you'd get exceptions. But if it was the second-or-subsequent attribute you retrieved you'd get the correct behaviour. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#2808 state:committed]
* Use the i18n gem if present instead of vendor code. [#2871 state:resolved]Lawrence Pit2009-07-071-5/+4
| | | | Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Ruby 1.9 style String interpolation support for lower ruby versions. Thanks ↵Lawrence Pit2009-07-073-0/+150
| | | | | | to code from Masao Mutoh's GetText gem. [#2870 state:resolved] Signed-off-by: Yehuda Katz <wycats@yehuda-katzs-macbookpro41.local>