Damien Mathieu
38c2e4687f
Missing rename from named_scope to scope [ #3735 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-01-18 09:33:36 +01:00
Joshua Peek
c29bb8857e
Clear out AS callback method pollution in AC::Base.action_methods
2010-01-17 22:06:28 -06:00
Joshua Peek
eeba755a11
Accessing nonexistant cookies through the signed jar should not raise an
...
exception
2010-01-17 21:31:06 -06:00
Sam Elliott and Santiago Pastorino
5a6596787b
Module lookup issue on flash_test using ruby 1.9 solved [ #3716 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-01-17 16:57:14 +01:00
Prem Sichanugrist
eb67532bc1
Make local_request? to returns true when facing ::1 IPv6 address [ #3257 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-01-17 16:56:54 +01:00
José Valim
27d9836ad3
Add ActionDispatch::Railties::Subscriber and finish tidying up the logging.
2010-01-17 12:43:17 +01:00
José Valim
0334f9f6cf
Add ActionDispatch::Notifications middleware.
2010-01-17 11:29:51 +01:00
José Valim
645832cfdd
Clean up filter parameter logging tests.
2010-01-17 09:54:24 +01:00
Joshua Peek
d2d4acf027
Cookies middleware
2010-01-16 17:22:27 -06:00
Joshua Peek
e9a1dbe79a
Allow custom controller for resource(s) [ #3703 state:resolved]
2010-01-16 15:16:22 -06:00
José Valim
5a5760828b
Add tests for simple match with namespace.
2010-01-15 23:36:03 +01:00
José Valim
13d76b6170
Add some implicit path tests to Subscriber.
2010-01-15 23:36:03 +01:00
Joshua Peek
b2578a148c
Fix singleton resource named routes
2010-01-15 16:31:00 -06:00
Joshua Peek
576b8dda52
Cleanup internal resource macro to use method helper shorthand
2010-01-15 16:13:01 -06:00
Joshua Peek
184ef28f55
Routing method shorthand shouldn't clobber :to options
2010-01-15 14:55:13 -06:00
Joshua Peek
ead93c5be5
Move Flash into middleware
2010-01-15 14:55:13 -06:00
Joshua Peek
3eaf525213
Make HEAD method masquerade as GET so requests are routed correctly
2010-01-15 12:38:50 -06:00
José Valim
1c30ec23fe
In heterogeneous collections, neither the @path nor the @template are available, so we need to tell that we are simply rendering a collection.
2010-01-15 17:43:45 +01:00
José Valim
a0cdfdc771
Allow f.submit to be localized per object.
2010-01-15 16:10:19 +01:00
José Valim
4598d88749
Ensure log is flushed and tailed on failures.
2010-01-15 14:16:52 +01:00
José Valim
8b9bff9557
Small tweaks in ActionController subscriber messages format.
2010-01-15 12:24:31 +01:00
José Valim
8c8942ed4f
Move Dispatcher setup to Railties and add instrumentation hook.
2010-01-15 12:24:30 +01:00
Joshua Peek
be968ecd8b
Respect resources_path_names and :path_names options in new dsl
2010-01-13 20:26:01 -06:00
Joshua Peek
0f51e45307
optimise_named_routes is unnecessary
2010-01-13 20:22:53 -06:00
José Valim
35933822de
Ensure optional path scopes are properly handled.
2010-01-14 01:31:17 +01:00
Stephen Celis
2835ec6134
Custom 'type' attribute support for text_field. [ #3646 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-01-14 01:07:04 +01:00
José Valim
214b548485
Make check boxes accept :multiple as option so they can handle collections (such as HABTM).
2010-01-14 01:07:03 +01:00
José Valim
d50bf47b00
Call :to_model before working with the object.
2010-01-14 01:07:03 +01:00
Carlos Antonio da Silva
8e0208f650
Add possibility to use i18n translatios in submit FormHelper.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-01-14 01:07:03 +01:00
José Valim
f921ad5c97
Tidy up ActiveRecord and Views runtime information on process action logger.
2010-01-14 01:07:03 +01:00
Joshua Peek
d01716731b
Add router support for resources :only and :except actions
2010-01-13 17:23:14 -06:00
Joshua Peek
5d787590f2
Cool this routing test passes now
2010-01-13 16:42:47 -06:00
Joshua Peek
bf9b81e2cb
Pass :as to resources to change the resource name
2010-01-13 12:18:06 -06:00
Joshua Peek
521ef3c40f
Passing in a crud action overloads the default action instead of creating a
...
new member action.
2010-01-13 11:45:27 -06:00
José Valim
01839834fd
ControllerRuntime tests also use Rails::Subscriber::TestHelper.
2010-01-13 01:19:24 +01:00
José Valim
b0d35ad00c
Test fragment/page cache and send data/file notifications.
2010-01-13 01:19:24 +01:00
José Valim
da5978c223
Add subscriber for ActionPack and move all logging inside it.
2010-01-13 01:19:23 +01:00
David Heinemeier Hansson
2c2b84f93c
Javascript tests expects the old default of escaping HTML, make it so for now
2010-01-10 18:25:17 -08:00
José Valim
d2e7c1b97d
Raise an error if respond_with is invoked and no format is declared.
2010-01-10 20:21:08 +01:00
José Valim
8d72ba51ba
Ensure nested namespaces work as expected.
2010-01-10 18:42:45 +01:00
Joao Carlos
36969c6ecd
Fixes namespaced routes [ #3673 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-01-10 12:49:31 +01:00
David Heinemeier Hansson
188d52165b
Fixed that much of DateHelper wouldn't return html_safe? strings [DHH]
2010-01-08 11:49:12 -08:00
José Valim
3b631df101
Ensure that segments in default_url_options also work with format specified.
2010-01-07 17:17:06 +01:00
José Valim
f149eb19d4
From now on, parameters defined in default_url_options can be absent from named routes.
...
This allows the following setup to work:
# app/controllers/application_controller.rb
class ApplicationController
def default_url_options(options=nil)
{ :locale => I18n.locale }
end
end
# From your views and controllers:
I18n.locale #=> :en
users_url #=> "/en/users"
users_url(:pl) #=> "/pl/users"
user_url(1) #=> "/en/users/1"
user_url(:pl, 1) #=> "/pl/users/1"
user_url(1, :locale => :pl) #=> "/pl/users/1"
If you provide all expected parameters, it still works as previously.
But if any parameter is missing, it tries to assign all possible ones
with the hash returned in default_url_options or the one passed straight
to the named route method.
Beware that default_url_options in ApplicationController is not shared
with ActionMailer, so you are required to always give the locale in your
email views.
2010-01-07 15:34:14 +01:00
José Valim
f564f947d9
Remove duplicated url_for code and move methods shared between ActionMailer and ActionController up to AbstractController.
2010-01-07 15:31:50 +01:00
José Valim
c68cc49dcd
Use helpers.label instead of views.labels.
2010-01-07 15:31:50 +01:00
José Valim
a091e2e4f6
errors in ActionView should not be namespaced as well.
2010-01-07 15:31:50 +01:00
José Valim
0d5ce7c525
namespace in routes changes both the path and name prefix.
2010-01-06 09:51:46 +01:00
José Valim
e55d70a380
redirect in routes takes port into account [ #3653 status:resolved]
2010-01-05 23:40:56 +01:00
Joshua Peek
b3900a29eb
All router redirect helper to accept a full URI [ #3653 state:resolved]
2010-01-05 12:00:38 -06:00