David Heinemeier Hansson
f0364d87f0
Release is today, yo
2010-04-01 14:20:03 -07:00
wycats
c1883e75b3
Updated changelogs to differentiate beta1 and beta2
2010-04-01 14:04:55 -07:00
wycats
d2a48852a1
Updated changelogs
2010-04-01 13:55:06 -07:00
David Heinemeier Hansson
d868cb4f8a
Prep for beta2, depend on latest Bundler
2010-04-01 13:36:45 -07:00
Bernardo de Pádua
81e6933246
Fix error in number_with_precision with :significant option and zero value [ #4306 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-01 07:25:14 +02:00
Jeremy Kemper
3859828d89
HTML safety: give a deprecation warning if an array of option tags is passed to select tag. Be sure to join the tag yourself and mark them .html_safe
2010-03-31 19:51:54 -07:00
José Valim
05337f61f9
yield always return an array, so we don't need to use .key?
2010-03-31 16:02:59 +02:00
José Valim
62151dd272
Deprecate cookie_verifier_secret in favor of config.cookie_secret allowing signed cookies to work again.
2010-03-31 12:59:41 +02:00
José Valim
772a0226fd
Add a test which ensures slugs in :id work.
2010-03-31 00:19:40 +02:00
Joshua Peek
cdf8c35ffd
Consistent routing language
2010-03-30 14:05:42 -05:00
Joshua Peek
17f0c1e9e8
Fix stack overflow bug in integration test router helpers
2010-03-30 13:58:18 -05:00
wycats
4aded43b73
Replace the placeholder base_hook API with on_load. To specify some code that
...
should run during framework load do:
ActiveSupport.on_load(:action_controller) do
# Code run in the context of AC::Base
end
2010-03-29 17:08:50 -07:00
José Valim
56bed512f9
Fix dom_id for ActiveRecord [ #4296 state:resolved]
2010-03-30 01:32:26 +02:00
wycats
201e8986b1
Updated asset_template_path to asset_path and have it also support a String [ #4247 state:resolved]
2010-03-28 18:46:18 -07:00
Craig R Webster
49bc6a249e
Allow customisation of asset path generation using a proc.
...
Set config.action_controller.asset_path_template to a proc that takes one
argument - the direct, unchanged asset path - and returns a path to that asset
using the scheme that your assets require.
This is useful if you have a setup which scales by introducing new application
servers where the mtime of the asset files may not be the same as those of the
asset files on your previous servers, but it does require your web servers to
have knowledge of the asset template paths that you rewrite to so it's not
suitable for out-of-the-box use. An example of configuring asset path
generation and rewriting these paths using Apache is included in
actionpack/lib/action_view/helpers/asset_tag_helper.rb.
Signed-off-by: wycats <wycats@gmail.com >
2010-03-28 18:35:05 -07:00
Rizwan Reza
cf6734fdf9
Add more tests and docs to uncountable routes. [ #3930 state:resolved]
2010-03-28 18:34:48 -07:00
Jan De Poorter
72074aac33
Add _index to named collection routes for uncountable resources (e.g. Sheep)
...
Signed-off-by: Rizwan Reza <rizwanreza@gmail.com >
2010-03-28 18:34:48 -07:00
Paco Guzman
878a9e02f6
html_tag option to wrap error_message_on text [ #4283 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-28 17:27:10 -07:00
wycats
77a2a3d9b3
Request#content_type exists in Rack::Request, and other parts of Rack::Request expect
...
it to return a String. Split the Rails API so that Request#content_type returns
a String, and Request#content_mime_type returns a Mime::Type object.
2010-03-28 13:40:38 -07:00
Andrew White
e1a70faea6
Add constraints to resources in new routing DSL
...
Signed-off-by: Rizwan Reza <rizwanreza@gmail.com >
2010-03-28 23:31:13 +04:30
wycats
c99194c7be
Merge remote branch 'rizwan/restrict'
2010-03-28 11:06:46 -07:00
Xavier Noria
76f024ac8d
adds missing requires for Object#blank? and Object#present?
2010-03-28 14:15:02 +02:00
Xavier Noria
105f9b8154
adds missing requires for Object#duplicable?
2010-03-28 13:26:13 +02:00
Rizwan Reza
835f5d0269
Rails 3 application can run performance tests now. [ #4171 state:resolved]
2010-03-28 15:03:25 +04:30
José Valim
a09e99259c
Ensure details are frozen after @details_keys lookup. The implementation waits to freeze until the last required moment, to avoid duping hashes.
2010-03-27 20:52:11 +01:00
wycats
fdebc7f55b
Missing require
2010-03-27 12:39:28 -07:00
wycats
0a352056a4
Fixes a bug where error_messages_for was returning an empty div [ #4048 state:resolved] (ht: Geoff Garside)
2010-03-27 03:10:05 -07:00
Daniel Rodríguez Troitiño
334983eca0
Recovers error_messages for ActiveRecordInstanceTag. [ #4078 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-27 01:56:20 -07:00
Sam Elliott and Ryan Bigg
62937b8fb0
Use ActiveSupport::Autoload for view helpers. [ #4237 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-27 01:13:45 -07:00
wycats
02ab7890bf
Fix a mistake in the documentation (ht: Evgeniy Dolzhenko) [ #4217 state:resolved]
2010-03-27 01:00:02 -07:00
Andrew White
39c35ff04b
Fix named routes for member actions of singleton resources [ #4266 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-27 00:49:47 -07:00
Rizwan Reza
167017f655
Tests method_missing to raise NameError. [ #2522 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-27 00:26:44 -07:00
Andrew White
3d746fcdb5
Add parameter defaults support to new routing DSL [ #4265 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-27 00:21:10 -07:00
wycats
b20a105ed0
Fixes typo (ht: Claudio Poli) [ #4107 state:closed]
2010-03-26 20:07:00 -07:00
wycats
56a86c2191
Make X-Sendfile default to "" so it works correctly in dev mode.
...
Provide a default in production.rb that can be modified, so that
people who care about sendfile performance in production mode can
get better performance easily.
2010-03-26 16:58:55 -07:00
wycats
197904341f
Merge branch 'master' into docrails
2010-03-26 15:10:24 -07:00
José Valim
395d6648ce
Move application configuration to the application configuration object, remove railtie_name and engine_name and allow to set the configuration object.
2010-03-26 18:47:55 +01:00
José Valim
b2c2b0ce45
Rails router automatically calculated for you the controller and named routes in the following scenarios:
...
match "home/about" #=> maps to home#about with named route home_about_path
match "about" #=> does not work because it cannot guess the controller
match "about" => "home#about" #=> maps to home#about with named route home_about_path
match "home/about", :as => "about" #=> maps to home#about with named route about_path
2010-03-26 15:51:51 +01:00
José Valim
4c7c406155
Remove reference to unexistent methods and fix typo.
2010-03-26 01:12:24 +01:00
retr0h
cbdb4aa287
Updated ActionController::Base.asset_host example
...
The example provided contrived. It is not useful when wanting to use
1-based asset hosts (since it would generate a random asset host for
the same asset).
Signed-off-by: Rizwan Reza <rizwanreza@gmail.com >
2010-03-25 21:55:21 +04:30
wycats
cc0e402aa8
Protect routes again so they don't end up as actions. We need a better solution than this.
2010-03-23 14:09:08 -07:00
wycats
15c31c7639
open_session can just return the a dup of the current context.
...
At this point, its entire purpose in the open_session {} case was to
delegate back to the IntegrationTest anyway.
2010-03-22 17:14:28 -07:00
José Valim
c53f77f3be
Rename unsignificant to insignificant.
2010-03-23 00:26:12 +01:00
José Valim
13bb4a6e68
Current url helpers become actions in controller. Added a failing test case for it.
2010-03-22 23:57:06 +01:00
Bernardo de Pádua
a4090bca6a
NumberHelper methods should now return html_safe strings (when the inputs are valid numbers or are html_safe). Also adds :raise => true (used internaly) to make the number helpers throw InvalidNumberError when the given number is invalid.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-22 21:19:49 +01:00
Bernardo de Pádua
75904c566e
Adds number_to_human and several improvements in NumberHelper. [ #4239 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-22 21:19:49 +01:00
José Valim
4998e097cc
Make router shortcuts more polite to URLs starting with a leading slash.
2010-03-22 21:07:37 +01:00
Denis Odorcic
b7adec3563
Remove data-url support from url_helper [ #4236 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-21 19:31:59 +01:00
wycats
f868c2afa9
response_body is an Array in 1.9, so an Array was being pushed onto the cache
2010-03-19 18:56:06 -07:00
wycats
e1c030edd8
Fixed a bunch of tests that failed in 1.9 because they assumed that a Rack response was a String.
2010-03-19 18:46:29 -07:00