Pratik Naik
e9a8e0053b
Add layout functionality to mailers.
...
Mailer layouts behaves just like controller layouts, except layout names need to
have '_mailer' postfix for them to be automatically picked up.
2008-08-31 19:17:42 +01:00
Luke Melia
7ce03db778
Fixes optimised named routes generating question mark followed by nothing when provided an empty hash as the last argument.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#481 state:committed]
2008-08-31 19:42:01 +02:00
Joshua Peek
086c3520c4
Moved layout exemption logic into the view
2008-08-31 11:34:46 -05:00
Joshua Peek
8eec694598
Prefix ActionView::Base private methods with an underscore
2008-08-31 10:50:43 -05:00
Pratik Naik
56c2b02f59
Fix AM tests and add tests for rendering logging
2008-08-31 16:29:21 +01:00
Pratik Naik
cdda7defa0
Add lost log messages about template rendering
2008-08-31 15:41:02 +01:00
Pratik Naik
a13d335461
Move layout rendering logic to ActionView::Base
2008-08-31 15:23:45 +01:00
Jeremy Kemper
c50223b76f
Fix tests that assumed implicit order by id
2008-08-30 22:47:28 -07:00
Pratik Naik
a59a3db1f3
Move copying ivar logic from ActionController::Base to ActionView::Base
2008-08-31 03:48:09 +01:00
miloops
6183e55f71
Use reflection primary_key instead of id for when selecting association ids.
...
[#906 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-08-30 17:39:30 -07:00
miloops
367a55e1b8
Allow prototype functions to receive position parameter as a symbol.
...
[#887 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-08-30 16:35:25 -07:00
Pratik Naik
cb25c4e584
Remove unused use_full_path argument
2008-08-31 00:18:10 +01:00
Jeremy Kemper
f7d9e09eee
Merge branch 'master' of git@github.com:rails/rails
2008-08-30 15:49:56 -07:00
miloops
b163d83b8b
Performance: Better query for ASSOCIATION_ids. Select only ids if the association hasn't been loaded.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-08-30 15:24:09 -07:00
Pratik Naik
4fb75392aa
Add test to make sure RJS block inside controller is executed in view context
2008-08-30 21:47:35 +01:00
Pratik Naik
e12abb6e8a
Dont pass controller partial layout option to view
2008-08-30 20:18:54 +01:00
Pratik Naik
afea4c9b0e
Remove double layout check
2008-08-30 19:35:29 +01:00
Pratik Naik
83c6ba1889
Add support for shallow nesting of routes. [ #838 state:resolved]
...
Adds :shallow option to resource route definition. If true, paths for nested
resources which reference a specific member (ie. those with an :id parameter)
will not use the parent path prefix or name prefix.
Example :
map.resources :users, :shallow => true do |user|
user.resources :posts
end
* GET /users/1/posts (maps to PostsController#index action as usual)
named route "user_posts" is added as usual.
* GET /posts/2 (maps to PostsController#show action as if it were not nested)
Additionally, named route "post" is added too.
2008-08-30 15:20:20 +01:00
Sven Fuchs
be4ae1f526
I18n: applied Luca Guidi's patch for better #interpolate performance
...
[#943 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-08-30 02:02:33 -07:00
Nathaniel Bibler
efa6620a2a
Added optional rake doc:app TITLE environment parameter
...
[#939 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-08-29 21:04:04 -07:00
Rasik Pandey
16b9a554db
Format related patches to support serializing data out in the correct format with correct http request headers per http method type [ #450 state:resolved]
...
Signed-off-by: Tarmo Tänav <tarmo@itech.ee >
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-08-29 18:45:39 -07:00
miloops
11eb29f60a
Make assert_select_rjs code more readable, make use of unused constants and use more simple Regexps.
...
[#540 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-08-29 17:52:26 -07:00
Tarmo Tänav
6450d6ca76
Added button_to_remote helper
...
Ticket originally from http://dev.rubyonrails.org/ticket/3641
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-08-29 16:22:01 -07:00
Jeremy Kemper
5a6e20b607
Fix test to not assume which thread finishes first
2008-08-29 15:59:56 -07:00
Hongli Lai (Phusion)
204a8cce88
Move some core extension methods into a module under the ActiveSupport::CoreExtensions namespace, instead of extending core classes directly. This is more friendly for API reference generators.
...
[#915 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-08-29 15:15:40 -07:00
Tom Stuart
7f179f8540
Make NamedScope#size behave identically to AssociationCollection#size. [ #933 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-08-29 22:18:49 +01:00
Joshua Peek
c0361344d9
1.9: methods need to be coerced into strings
2008-08-29 15:43:07 -05:00
James Mead
3cf773b187
ActionMailer should respond_to? to methods handled by method_missing [ #700 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-08-29 15:09:47 -05:00
Michael Koziarski
99492bad88
Use a set for the named scope methods not a big regexp.
2008-08-29 21:12:37 +02:00
Tom Lea
db26b47b9f
Ensure that calling content_tag_for in a helper doesn't cause duplicate output.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#871 state:committed]
2008-08-29 20:52:01 +02:00
Tim Haines
d0b949d873
Improve assert_select_rjs failure messages for show, hide, toggle, and remove
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#931 state:committed]
2008-08-29 20:51:47 +02:00
Joshua Peek
a200c67611
Merge RenderTest and NewRenderTest
2008-08-29 13:26:28 -05:00
Eugene Pimenov
743f0e7114
Make case insensitive validates_uniqueness_of use unicode aware downcase method.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-08-29 20:24:20 +02:00
Nick Sieger
a9086b3daa
Make query-cache thread-local
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-08-29 10:21:39 -05:00
Michael Koziarski
6769d824f9
Fix parentheses warnings
2008-08-29 15:27:34 +02:00
Jan De Poorter
db116a2ed6
Fix NamedScope regex so methods containing "an" get delegated to proxy_found. [ #901 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-08-29 14:06:37 +01:00
Pratik Naik
6577942b61
Deprecate render_component.
...
Please install render_component plugin from http://github.com/rails/render_component/tree/master
if your application uses this functionality.
2008-08-29 13:43:30 +01:00
Jeremy Kemper
85070b5e56
Date#freeze bug doesn't affect Ruby 1.9
2008-08-28 22:36:10 -07:00
Jeremy Kemper
c94f6ea2f3
Date#freeze bug doesn't affect Ruby 1.9
2008-08-28 22:27:55 -07:00
Jeremy Kemper
766fb54c8f
Fix indentation
2008-08-28 12:35:47 -07:00
Jeremy Kemper
082c377954
Missed changelog update for #501
2008-08-28 12:32:38 -07:00
Brennan Dunn
9cc8c0a0a1
Routes may be restricted to lists of HTTP methods instead of a single method or :any.
...
[#407 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-08-28 12:29:49 -07:00
Brennan Dunn
7bdd5b768e
Accept an array of method symbols for collection/member actions of resources
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-08-28 12:23:39 -07:00
Andrew White
db22c89543
Merge scoped :joins together instead of overwriting them. May expose scoping bugs in your code!
...
[#501 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-08-28 12:07:15 -07:00
Ernie Miller
44af2efa2c
Refactored AssociationCollection#count for uniformity and Ruby 1.8.7 support.
...
[#831 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-08-28 11:58:25 -07:00
Jeremy Kemper
ce4d13861d
Merge branch 'master' of git@github.com:rails/rails
2008-08-28 11:47:06 -07:00
Joshua Peek
acbf2b74aa
Deprecated implicit local assignments when rendering partials
2008-08-28 10:37:46 -05:00
Michael Koziarski
8b6870cfae
Prevent deprecation warning in the tests
2008-08-28 12:47:18 +02:00
Bradford Folkens
293f99700d
Reinstate Range#step default argument.
...
[#595 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-08-27 23:48:54 -07:00
Tarmo Tänav
96c6fe0842
Implement count limit/offset support for has_many associations
...
[#348 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-08-27 23:32:21 -07:00