Xavier Noria
fe43bbd8c7
keep AssociationProxy#to_a to avoid warning in Array(post.author), and delegate it to @target in association collections
...
[#4165 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-03-12 11:53:22 -08:00
José Valim
611744ebd3
Load the environment before executing rails console. [ #3905 status:resolved]
2010-03-12 20:41:41 +01:00
José Valim
2b0611b9bb
Revert "Always load the environment before executing any command. [ #3905 status:resolved]"
...
This reverts commit 16846553b8866eab2aa3b128a2a23a221a25f7e3.
2010-03-12 20:40:34 +01: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
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
16846553b8
Always load the environment before executing any command. [ #3905 status:resolved]
2010-03-12 12:53:22 +01:00
José Valim
4840acd485
%= works for content_tag and does not require parenthesis on method call
2010-03-12 12:08:23 +01:00
José Valim
839362fa07
Make all AP tests pass for Ruby 1.9.1.
2010-03-12 11:50:45 +01:00
Jeremy Kemper
f10631e13d
Be sure to pass through args to to_yaml
2010-03-11 18:37:28 -08:00
Jeremy Kemper
5a7f7928a6
Fix test
2010-03-11 17:49:17 -08:00
Jeremy Kemper
47bc138fc1
Write strings to fragment cache, not outputbuffers
2010-03-11 17:43:29 -08:00
Jeremy Kemper
1f6c5677ad
OutputBuffer#to_yaml should return string yaml, not some custom class dump
2010-03-11 17:42:29 -08:00
Jeremy Kemper
698312de87
Delegate #encoding to SafeBuffer too
2010-03-11 17:42:27 -08:00
Eaden McKee
b27376773e
simplify alt tag generation for images
...
[#2837 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-03-11 17:33:41 -08:00
Jeremy Kemper
d56e8be22d
Revert "Rake task for generating Rails documentation updated to support Bundler."
...
Incredibly slow. Fix gem_path to not load the bundle fresh each call.
This reverts commit 58796dcfc0d74fa3def752fa8b779f725f0747f0.
2010-03-11 13:23:58 -08:00
Carl Lerche
8b4dca109a
ActionController::Base.request_forgery_protection_token should actually be the name of the token and not true.
2010-03-11 10:08:18 -08:00
Rizwan Reza
58796dcfc0
Rake task for generating Rails documentation updated to support Bundler.
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-11 13:44:57 +01:00
José Valim
6c027443b0
Add tests for lookup context.
2010-03-11 13:23:14 +01:00
Jeremy Kemper
073852dff0
Float arel on latest rails/arel
2010-03-10 16:10:45 -08:00
Jeremy Kemper
3d5d0286b3
Update scaffold to use <%= form_for
2010-03-10 16:04:12 -08:00
Jeremy Kemper
c5ff181480
Use arel 0.3.1, for srs
2010-03-10 14:04:10 -08:00
Jeremy Kemper
0b00e2b0e2
For rails tests, use latest from rails/arel.git
2010-03-10 13:49:12 -08:00
Jeremy Kemper
275df55106
Bump arel dep to 0.3.0+
2010-03-10 13:49:11 -08:00
Emilio Tagua
e08c153a08
Arel now fallback to using Arel::Attribute if the table/column doesn't exists.
...
[#4142 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-03-10 13:49:11 -08:00
Aaron Patterson
aad432a9e9
removing spawn from SpawnMethods
...
Signed-off-by: wycats <wycats@gmail.com>
2010-03-10 13:29:00 -08:00
wycats
4745b53bcd
Merge branch 'master' of github.com:rails/rails
2010-03-10 13:28:52 -08:00
José Valim
84f6da45a1
Merge branch 'master' of gitproxy:rails/rails
2010-03-10 22:17:44 +01:00
José Valim
07cf49aadf
Optimize and clean up how details key get expired.
2010-03-10 22:13:29 +01:00
José Valim
ec0973c2ab
Remove uneeded methods.
2010-03-10 16:44:24 +01:00
José Valim
bbc4de75d3
Require AP::VERSION in order to install gems.
2010-03-10 14:32:02 +01:00
Pratik Naik
181c414baa
Fix scope loading issue when the table doesn't exist
2010-03-10 11:28:04 +00:00
wycats
7b622786fc
Make form helpers work with <%=
2010-03-09 23:44:12 -08:00
Carlhuda
4464b8e87b
Deprecate block_called_from_erb? pending a solution for getting it into apps
2010-03-09 23:44:12 -08:00
wycats
f30b7a0903
Rails requires Rubygems 1.3.6
2010-03-09 23:44:12 -08:00
Joshua Peek
dcd110c724
skip_relative_url_root url_for option is dead
2010-03-09 21:25:09 -06:00
Joshua Peek
1cc2a61ea6
Allow default_url_options to be set on route set
2010-03-09 21:20:13 -06:00
Joshua Peek
4d2470f7da
RouteSet#rewrite => url_for
2010-03-09 21:00:24 -06:00
Joshua Peek
e38ea982ff
Unused RouteSet#url_for is hogging a good method name
2010-03-09 20:57:43 -06:00
Joshua Peek
7db80f87e9
Move AC::UrlRewriter onto route set
2010-03-09 20:50:35 -06:00
José Valim
ffec153029
Merge branch 'master' of gitproxy:rails/rails
2010-03-09 22:57:15 +01:00
José Valim
6cee532a44
Added alert to layouts on scaffold.
2010-03-09 22:21:51 +01:00
Jeremy Kemper
a87683fb38
Disprefer JSONGem decoder since it only decodes JSON objects
2010-03-09 11:06:54 -08:00
Justin Ko
ea4f8ef33f
Reinstate dom_id in controllers.
...
[#3040 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-03-09 10:49:36 -08:00
wycats
9444ac9312
Refactor the RouteSet so it uses a Generator object instead of one huge method.
2010-03-09 10:20:56 -08:00
wycats
de79525d04
Get rid of the instance-level URL rewriter
2010-03-09 10:20:56 -08:00
José Valim
00d6271d2b
Clean up the API required from ActionView::Template.
2010-03-09 13:12:11 +01:00
Jeremy Kemper
c507e16dba
Reinstate default_url_options and remove url_options= writer
2010-03-08 21:40:45 -08:00
Jeremy Kemper
514d3a47f4
Remove outdated, distracting commented code
2010-03-08 21:40:18 -08:00
wycats
e4558e0dbf
Now that class_attribute creates an instance method, remove it to avoid deprecation warnings ;)
2010-03-08 18:48:58 -08:00
Carlhuda
056042eb82
Simplify the action endpoint:
...
* Remove ActionEndpoint in favor of passing a block to MiddlewareStack
* Always create a Request; the performance win of RackDelegation is around
the response; the Request object hit is limited to a single object allocation
* #dispatch takes a Request
2010-03-08 16:50:00 -08:00