Aaron Patterson
36d6678690
removing usesless variable assignments
2011-01-18 15:52:56 -08:00
Nick Sutterer
db24701abe
process_action accepts multiple args, even with Callbacks.
2010-12-29 16:37:10 -08:00
artemave
ddd85ef9c6
#948 template_inheritance
2010-12-26 22:32:15 -08: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
0c08d8bd75
Fix more warnings by defining variables and using instance_variable_defined? instead instance_variable_get.
2010-09-28 18:25:52 -03:00
José Valim
66ef92272c
Add clear_helpers as a way to clean up all helpers added to this controller, maintaing just the helper with the same name as the controller.
2010-08-26 16:07:54 -03:00
Santiago Pastorino
b451de0d6d
Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;)
2010-08-14 04:12:33 -03:00
Piotr Sarnacki
84f0a0bc30
Reload action_methods in AbstractController after defining new method.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-04 14:44:34 -03:00
Jeremy Kemper
81f398b804
Fix setting helpers_path to a string or pathname
2010-07-07 12:03:08 -07:00
José Valim
02399a1184
Ensure overwritten callbacks conditions in controllers work [ #4761 state:resolved] [ #3913 state:resolved]
2010-06-22 07:57:45 +02:00
Neeraj Singh
73f0e1a842
Use assert_respond_to because it has better error messaging
...
[#4628 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-18 02:12:06 +02:00
wycats
485512c50f
Whitespace
2010-04-04 19:58:16 -07:00
wycats
209fb5190b
render_to_string should have the identical signature as render
2010-04-04 19:58:15 -07:00
José Valim
2a12686832
Allow anything that responds to render to be given as :template and use find_template instead of find in views.
2010-03-12 14:25:10 +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
ea68fe59c6
More refactoring on the views side of rendering.
2010-03-08 14:46:57 +01:00
José Valim
0a85380966
Finally moved the find template logic to the views.
2010-03-08 11:32:01 +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
José Valim
df85ab41c1
Renamed LocalizedCache to DetailsCache.
2010-02-24 22:17:26 +01:00
Mikel Lindsaar
2ebea1c02d
deOMGifying Railties, Active Support, and Action Pack
2010-01-31 09:46:30 -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
3f84091937
ActionMailer should depend just on AbstractController.
2010-01-29 17:51:05 +01:00
Jeremy Kemper
aef76d1e71
Merge remote branch 'fxn/master'
2010-01-26 15:38:49 -08:00
Xavier Noria
7d312e54ba
deletes no void files removal.rb and class_test.rb
2010-01-26 22:57:27 +01:00
José Valim
e274eb1df1
Bring layouts with proc back alive.
2010-01-26 16:34:25 +01:00
José Valim and Mikel Lindsaar
4e96442c4e
Merge branch 'master' of git://github.com/rails/rails
...
Conflicts:
actionmailer/lib/action_mailer/mail_helper.rb
railties/lib/rails/configuration.rb
2010-01-25 09:50:01 +11:00
José Valim
6545a68264
Fix failing tests after merge.
2010-01-24 15:08:06 +01:00
José Valim and Mikel Lindsaar
ddfc0725a0
Added AbstractController::Collector.
2010-01-23 10:23:06 +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
dcb8b64975
Add shortcut test to abstract/render_test.rb
2010-01-21 12:12:10 +01:00
José Valim
6e26be6960
Move ActionController::Translation to AbstractController::Translation.
2010-01-20 15:02:13 +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
David Heinemeier Hansson
83f4d86a93
Rename the RenderingController module to just plain Rendering
2009-12-20 17:15:31 -08:00
Carlhuda
c1304098cc
Reorganize autoloads:
...
* A new module (ActiveSupport::Autoload) is provide that extends
autoloading with new behavior.
* All autoloads in modules that have extended ActiveSupport::Autoload
will be eagerly required in threadsafe environments
* Autoloads can optionally leave off the path if the path is the same
as full_constant_name.underscore
* It is possible to specify that a group of autoloads live under an
additional path. For instance, all of ActionDispatch's middlewares
are ActionDispatch::MiddlewareName, but they live under
"action_dispatch/middlewares/middleware_name"
* It is possible to specify that a group of autoloads are all found
at the same path. For instance, a number of exceptions might all
be declared there.
* One consequence of this is that testing-related constants are not
autoloaded. To get the testing helpers for a given component,
require "component_name/test_case". For instance, "action_controller/test_case".
* test_help.rb, which is automatically required by a Rails application's
test helper, requires the test_case.rb for all active components, so
this change will not be disruptive in existing or new applications.
2009-12-02 20:01:08 -08:00
Jeremy Kemper
8cd486da80
test-unit 2 compat: assert_raise doesn't support regexp second arg to match exception message
2009-11-10 16:14:10 -08:00
Jeremy Kemper
52e2bbd5c0
Ruby 1.9: work around constant resolution behavior change :(
2009-11-04 14:51:54 -08:00
José Valim
976c264724
Extracted localized_cache.rb from ActionController, added it to AbstractController and made ActionMailer use it.
2009-11-01 02:23:49 +01:00
José Valim
0396004861
Add some basic render_test to AbstractController.
2009-11-01 02:23:48 +01:00
José Valim
0cf16ddb88
Improve AbstractController layouts coverage.
2009-11-01 02:23:48 +01:00
José Valim
2d514e5352
Move some of helper tests to AbstractController.
2009-11-01 02:23:48 +01:00
José Valim
43d5504f0a
Move all render and layout pieces required in ActionMailer from ActionController to AbstractController.
2009-11-01 02:23:48 +01:00
Joshua Peek
f1c8f07be8
Follow short name convention for test folder and just call it "abstract"
2009-09-19 13:14:22 -05:00