Nick Sutterer
eb327c1bab
no @controller dependency in Renderers.
2011-05-04 00:12:11 +02:00
José Valim
f9849070ac
Add a shared entry point for AV and AC render which can be used as extension in the future.
2011-05-03 16:51:47 +02:00
José Valim
b735761385
Introduce view renderer.
2011-05-01 13:40:13 +02:00
José Valim
a66c917235
Do not inherit from Rack::Response, remove a shit-ton of unused code.
2011-04-19 11:54:12 +02:00
José Valim
4f044528c0
Slightly reorganize rendering stack.
2011-04-18 08:12:51 +02:00
José Valim
d6bd606bdd
render :once, YAGNI.
2011-04-15 21:11:54 +02:00
Prem Sichanugrist
0f8a6ebba3
Fix missing requires in Action Mailer
...
This made the isolated test failed on CI server.
Signed-off-by: Xavier Noria <fxn@hashref.com>
2011-04-13 19:52:19 +02:00
Neeraj Singh
806e6f80dc
render_to_string must ensure that response_body
...
is nil
[ #5875 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-01-25 20:14:03 +01:00
José Valim
262b2ea8cd
Solve SystemStackError when changing locale inside ActionMailer [ #5329 state:resolved]
2011-01-19 23:42:10 +01:00
wycats
e03e1fdbc8
Speed up template inheritance and remove template inheritance option
2010-12-26 23:56:09 -08:00
artemave
ce21ea7832
#948 make template inheritance optional
2010-12-26 22:32:15 -08:00
artemave
ddd85ef9c6
#948 template_inheritance
2010-12-26 22:32:15 -08:00
Santiago Pastorino
d3f8765482
Avoid range object creation
2010-11-20 02:29:57 -02:00
Santiago Pastorino
bb7b705b0c
Fix indentation
2010-11-19 14:26:44 -02:00
Santiago Pastorino
555b7cd04a
Don't merge just directly add to the action to the :partial key
2010-11-19 14:26:42 -02:00
Santiago Pastorino
b1ffd65b8f
Useless assignation
2010-11-19 14:26:39 -02:00
Andrew White
4ba24ba043
Allow generated url helpers to be overriden [ #5243 state:resolved]
2010-10-26 14:27:18 +01:00
José Valim
940b57789f
Add support to render :once.
...
This will be used internally by sprockets to ensure requires are executed just once.
2010-10-10 12:43:26 +02:00
José Valim
c563f10f3e
render :template => 'foo/bar.json' now works as it should.
2010-10-07 21:31:31 +02:00
José Valim
8f9e9118e4
Make collection rendering faster.
2010-10-07 21:31:31 +02:00
José Valim
14f9904e0f
Avoid (@_var ||= nil) pattern by using initialize methods and ensuring everyone calls super as expected.
2010-09-29 11:18:31 +02:00
Emilio Tagua
059d609a1a
Avoid more uninitialized variable warnings.
2010-09-28 15:46:30 -03:00
Piotr Sarnacki
6c95e0f879
Add mounted_helpers to routes
...
mounted_helpers are a bit similar to url_helpers. They're automatically
included in controllers for Rails.application and each of mounted
Engines. Mounted helper allows to call url_for and named helpers for
given application.
Given Blog::Engine mounted as blog_engine, there are 2 helpers defined:
app and blog_engine. You can call routes for app and engine using those
helpers:
app.root_url
app.url_for(:controller => "foo")
blog_engine.posts_path
blog_engine.url_for(@post)
2010-09-03 22:59:07 +02:00
Piotr Sarnacki
f7ba614c2d
Unify routes naming by renaming router to routes
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-07-02 01:51:03 +02:00
wycats
ffe001f19d
Changes made while working on upgrading cells to Rails 3
2010-06-02 22:56:41 +02:00
José Valim
3fc609ee41
Fix ActionMailer test broken in 99d54599215c2a8cea7e57f609e8e578043d71b2
2010-04-12 10:50:27 +02:00
wycats
209fb5190b
render_to_string should have the identical signature as render
2010-04-04 19:58:15 -07:00
wycats
0aa0c37b59
Well that was a bust
2010-03-18 22:55:44 -07:00
wycats
995f57033f
We seem to have removed the URL helpers from ActionView subclasses...
2010-03-18 22:21:25 -07:00
Carlhuda
a5d80f84d2
Each controller class has it's own view context subclass. This removes the need for ActionView::Base.for_controller
2010-03-18 18:14:54 -07:00
Carlhuda
1dacc19702
Return a valid Rack response from bare ActionController::Metal
2010-03-18 17:32:53 -07:00
Carlhuda
71c9337f45
All tests pass without memoizing view_context
2010-03-18 15:52:43 -07:00
José Valim
21dcbb17de
Ensure json is loaded before using responders.
2010-03-17 23:09:28 +01:00
Carlhuda
6416a35f4b
Remove unneeded AV::Base and AV::Template monkey-patches
2010-03-17 14:29:18 -07:00
José Valim
f2c0a353ae
Finish cleaning up rendering stack from views and move assigns evaluation to controller (so plugins and/or controllers can overwrite just one method).
2010-03-12 20:39:53 +01:00
José Valim
07cf49aadf
Optimize and clean up how details key get expired.
2010-03-10 22:13:29 +01:00
José Valim
00d6271d2b
Clean up the API required from ActionView::Template.
2010-03-09 13:12:11 +01:00
José Valim
8f082ff421
Clean LookupContext API.
2010-03-08 23:25:16 +01:00
José Valim
bdf5096816
Move details to lookup_context and make resolvers use the cache key.
2010-03-08 20:39:15 +01:00
José Valim
67a6725bf9
Move ViewPaths module to its own file.
2010-03-08 16:50:10 +01:00
José Valim
68cda695da
Speed up performance in resolvers by adding fallbacks just when required.
2010-03-08 16:32:40 +01:00
José Valim
44ebab96da
Rename Template::Lookup to LookupContext.
2010-03-08 15:19:03 +01:00
José Valim
0a85380966
Finally moved the find template logic to the views.
2010-03-08 11:32:01 +01:00
José Valim
34b2180451
More refactoring. Split _normalize_args and _normalize_options concerns.
2010-03-08 03:23:23 +01:00
José Valim
ffd8d753f1
Move layout lookup to views.
2010-03-08 02:04:18 +01:00
José Valim
c7564d74e8
Added template lookup responsible to hold all information used in template lookup.
2010-03-07 19:41:58 +01:00
Carlhuda
300d6b549d
Merge _details_defaults and details_for_render
2010-03-01 17:45:37 -08:00
José Valim
bd36418c51
Fix controller_path returnsing an empty string in Ruby 1.8.7 [ #4036 status:resolved]
2010-02-26 11:51:21 +01:00
José Valim
df85ab41c1
Renamed LocalizedCache to DetailsCache.
2010-02-24 22:17:26 +01:00
Yehuda Katz
ac956c4aee
Update AP to start locking down a public API. This work is parallel to some docs I'm working on.
2010-02-16 10:45:59 -08:00
Jeremy Kemper
e5ab4b0d07
Convert to class_attribute
2010-02-01 02:02:42 -08:00
José Valim
cc2642b220
Added :format and :locale options to render.
2010-01-29 17:51:06 +01:00
José Valim
986a4e616b
Fix rendering of layouts.
2010-01-29 17:51:05 +01:00
José Valim and Mikel Lindsaar
502028a32b
Move double render check out of AbstractController.
2010-01-23 10:29:22 +01:00
José Valim
d618b7e3dc
Ensure strings given to render with slash are rendered relative to the configured _prefix.
2010-01-22 17:58:03 +01:00
José Valim
6e26be6960
Move ActionController::Translation to AbstractController::Translation.
2010-01-20 15:02:13 +01:00
José Valim
8e2fd54b19
Bring normalize behavior to AbstractController::Rendering
2010-01-20 15:02:13 +01:00
Pratik Naik
ed8501ef16
Fix DoubleRenderError error message
2010-01-19 15:23:56 +05:30
José Valim
562a00ba16
@_formats initialization should be AbstractController::Base.
2010-01-04 23:05:28 +01:00
José Valim
c03c40b481
Expose a _render_partial hook as thhe _render_template one and make use of it.
2009-12-31 18:40:20 -08:00
David Heinemeier Hansson
a110ff0fca
Dont introspect inline templates for the logger and cleanup a few styling issues
2009-12-21 16:03:04 -08:00
Yehuda Katz
17f66473bc
AC::Head now doesn't have an unfulfilled Rendering dependency, and instead works just fine standalone (which means that ConditionalGet also doesn't have a Rendering dependency)
2009-12-20 18:50:54 -08:00
David Heinemeier Hansson
83f4d86a93
Rename the RenderingController module to just plain Rendering
2009-12-20 17:15:31 -08:00