aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Move accept header parsing shortcut to Mime::Type.parseJeremy Kemper2008-07-092-41/+43
|
* Don't repeatedly convert only/except optionsJeremy Kemper2008-07-091-3/+28
|
* Remove some Symbol#to_proc usage in runtime code. [#484 state:resolved]Cheah Chu Yeow2008-07-098-19/+27
|
* Boolean type casting creates fewer objectsJeremy Kemper2008-07-091-1/+1
|
* Request#accepts special-cases a single mime typeJeremy Kemper2008-07-091-4/+10
|
* Fix teardown method name typoJeremy Kemper2008-07-091-1/+1
|
* Put a newline rather than a semicolon at the end of RJS source to avoid ↵Jeremy Kemper2008-07-091-1/+1
| | | | parse errors with embedded heredocs
* Use ActionController::Base.logger to report template compilation errors ↵Jeremy Kemper2008-07-091-4/+4
| | | | since there is no AV::Base.logger
* Rendering default template for missing actions works with non-word ↵Jeremy Kemper2008-07-093-1/+7
| | | | characters in action name
* Pass caller to concat deprecation warningJeremy Kemper2008-07-091-1/+1
|
* Reenable the use of the Accept header to give people a chance to update ↵Michael Koziarski2008-07-092-7/+8
| | | | their applications and provide feedback.
* Changed PrototypeHelper#submit_to_remote to PrototypeHelper#button_to_remote ↵David Heinemeier Hansson2008-07-093-5/+10
| | | | to stay consistent with link_to_remote (submit_to_remote still works as an alias) (clemens) [#8994 status:closed]
* Ensure NamedScope#build/create/create!/new works as expected when named ↵Daniel Guettler2008-07-093-1/+30
| | | | | | scope has hash conditions. [Daniel Guettler, Pratik Naik] [#419 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Allow Infinity (1.0/0.0) to pass validates_numericality_of. [#354 ↵Chris Cherry2008-07-092-6/+7
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure url_for(nil) falls back to url_for({}). [#472 state:resolved]Cheah Chu Yeow2008-07-093-6/+14
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Plugin locator: sort directory listing because we can't assume that the OS ↵Hongli Lai (Phusion2008-07-091-1/+1
| | | | will do it for us. This fixes some unit test failures.
* Add :recursive option to javascript_include_tag and stylesheet_link_tag to ↵Damian Janowski2008-07-085-14/+89
| | | | | | be used along with :all. [#480 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Disable the Accept header by defaultMichael Koziarski2008-07-0710-30/+76
| | | | | | | | The accept header is poorly implemented by browsers and causes strange errors when used on public sites where crawlers make requests too. You should use formatted urls (e.g. /people/1.xml) to support API clients. Alternatively to re-enable it you need to set: config.action_controller.use_accept_header = true A special case remains for ajax requests which will have a javascript format for the base resource (/people/1) if the X-Requested-With header is present. This lets ajax pages still use format.js despite there being no params[:format]
* Add support for :primary_key option to has_one as well as has_many so that a ↵Brad Greenlee2008-07-065-5/+23
| | | | | | key other than the default primary key can be used for the association Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Add has_many :primary_key option to allow setting the primary key on a has ↵Andre Arko2008-07-066-2/+19
| | | | | | many association Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Added local assign keys to compiled method name so two threads evaluating ↵Joshua Peek2008-07-063-26/+9
| | | | the same template with different locals don't step on top of each other
* Synchronize template compilingJoshua Peek2008-07-061-31/+34
|
* Lookup compiled methods in CompiledTemplates instance methods set instead of ↵Joshua Peek2008-07-055-50/+30
| | | | using a "methods_names" hash
* Do not stat template files in production mode before rendering. You will no ↵Joshua Peek2008-07-053-29/+18
| | | | longer be able to modify templates in production mode without restarting the server
* Use the inline template's hash as a method key instead of relying on a counterJoshua Peek2008-07-051-7/+2
|
* Removed unused template_args variableJoshua Peek2008-07-051-2/+0
|
* Deprecated TemplateHandler line offsetJoshua Peek2008-07-055-74/+57
|
* Ensure all complied method names are cleaned up in the error backtraceJoshua Peek2008-07-051-1/+1
|
* Moved complied method name logic into RenderableJoshua Peek2008-07-054-23/+24
|
* Renamed Renderer to RenderableJoshua Peek2008-07-054-4/+4
|
* Fix rdoc for Filters::ClassMethodsJeremy Kemper2008-07-041-195/+194
|
* Use ActiveSupport::TimeZone in time:zones rake tasksPratik Naik2008-07-041-1/+1
|
* Simplify the implementation of assert_redirected_to to normalise the urls ↵Michael Koziarski2008-07-046-114/+50
| | | | | | before comparing. Also allows for a simpler implementation of redirect_to without most of the recursion. Also allows for assert_redirected_to @some_record
* Remove old broken follow_redirect from functional tests. Still works in ↵Michael Koziarski2008-07-044-43/+5
| | | | | | integration tests. The follow_redirect in functional tests only worked if you used redirect_to :id=>foo, :action=>bar, rather than named routes.
* Move test related core_ext stuff out of regular core ext to prevent nasty ↵Michael Koziarski2008-07-045-9/+13
| | | | surprises when you require active_support then use Test::Unit directly.
* Revert "Moved TemplateHandlers to Base"Joshua Peek2008-07-036-14/+9
| | | | | | | | | This reverts commit 42d215a925a228778e43f7040f03ad8f3eb5341c. Conflicts: actionpack/lib/action_view/inline_template.rb actionpack/lib/action_view/template.rb
* Allow caches_action to accept cache store options. [#416 state:resolved]josevalim2008-07-043-8/+24
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add :tokenizer option to validates_length_of. [#507 state:resolved]David Lowenfels2008-07-043-6/+27
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Allow date helpers to ignore date hidden field tags. [#503 state:resolved]miloops2008-07-042-2/+20
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Reduce the number of callsites for new TemplateFilesJoshua Peek2008-07-033-22/+33
|
* Extracted Template rendering logic into Renderer moduleJoshua Peek2008-07-035-33/+42
|
* Use render on InlineTemplateJoshua Peek2008-07-031-1/+1
|
* Don't rely on view instance loggerJoshua Peek2008-07-031-4/+4
|
* Moved TemplateHandlers to BaseJoshua Peek2008-07-036-9/+13
|
* Tighten the rescue clause when dealing with invalid instance variable names ↵Michael Koziarski2008-07-031-1/+5
| | | | in form_helper.
* Move the file exists checks outside write_asset_file_contents.Michael Koziarski2008-07-031-6/+4
| | | | This lets us avoid the relatively costly trip through compute_*_paths if the file already exists.
* Move template_format logic out to the request so it's alongside the ↵Michael Koziarski2008-07-033-13/+15
| | | | | | 'regular' request format. Use xhr? instead of the expensive trip through Request#accepts.
* Support for custom annotations with rake notes:custom and DRY up the task ↵Michael Koziarski2008-07-031-11/+8
| | | | | | definition. e.g. rake notes:custom ANNOTATION=WTF
* Remove unused local_binding option to InstanceTag's ConstructorMichael Koziarski2008-07-033-17/+17
|
* Remove nested ternary operators from select_year in favour of conditionals.Michael Koziarski2008-07-031-11/+20
|