David Heinemeier Hansson
e119aaecd6
Depend on Bundler 1.0 w/ tiny fixes
2010-08-29 13:25:52 -05:00
David Heinemeier Hansson
33afaa446f
Depend on ARel 1.0 w/ tiny fixes
2010-08-29 13:25:45 -05:00
Sam Ruby
600cf8bebc
Make rake routes gracefully handle routes with no name
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-08-29 14:38:29 -03:00
José Valim
82b700a89d
Ensure we are not calling length on nil.
2010-08-28 22:54:42 -03:00
Santiago Pastorino
68a949bae7
PERF: Avoid two method calls
2010-08-28 21:35:20 -03:00
Jeremy Kemper
0d0c46abd1
Clean up CHANGELOGs
2010-08-28 15:45:14 -07:00
Mike Perham
390d285ef6
Support pluggable cache stores.
...
[#5486 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-08-28 15:43:10 -07:00
Jesse Storimer
730af48963
Ensure that inherited helper_methods are available after calling clear_helpers [ #5348 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-28 18:07:01 -03:00
Fred Wu
83f4507cf1
Fixed the session name generated by the app_generator. Also refactored the corresponding test suites to be cleaner. [ #5434 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-28 17:54:53 -03:00
yury
3e22e0b025
Micro optimization for build_named_route_call in PolymorphicRoutes:
...
1. use map instead of inject
2. use [].join("_") instead of '<<'. It is a little bit faster for ruby 1.9.2 and x2 faster for ruby 1.8.7. http://gist.github.com/548143
[#5450 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-28 17:54:50 -03:00
Thiago Pradi
ececa75c66
Fixing typo [ #5485 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-28 17:51:22 -03:00
Santiago Pastorino
1851af84c1
password_field renders with nil value by default
...
This makes the use of passwords secure by default if you want to render
the value of the password_field you have to do for instance
f.password_field(:password, :value => @user.password) # =>
<input type=password id=user_password name=user[password]
value=#{@user.password } />
2010-08-28 05:23:34 -03:00
Santiago Pastorino
d630c76f3f
type="password" for password_fields
2010-08-28 04:53:50 -03:00
Andrew White
5c2b6c55a0
Read the route name directly from the route instead of looking it up in the named routes hash
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-08-27 17:05:14 -07:00
Xavier Noria
dda515fc26
Merge remote branch 'docrails/master'
2010-08-28 00:01:55 +02:00
Joost Baaij
279c395723
Use common terminology
2010-08-27 23:50:23 +02:00
Xavier Noria
27d42a56b9
Revert "call-seq directive makes rdoc cry and replaces method names with a curly brace; besides it doesn't add anything when you only list one call example since this is obviously documented already"
...
Reason: Part of this commit touches vendorized stuff, the rest is fine, could you please repatch?
This reverts commit 60de0e56b7 .
2010-08-27 23:30:52 +02:00
Xavier Noria
3b62667e77
solves everything in guides raised by WARNINGS=1 (except for one which is abandoned atm)
2010-08-27 23:27:29 +02:00
Xavier Noria
df367adba1
adds a comment in cli.rb so that it is clear that exec_script_rails! performs an exec call
2010-08-27 23:27:29 +02:00
Joost Baaij
4a56f8f314
escape constants that should not be linked to
2010-08-27 22:47:11 +02:00
Joost Baaij
76c569344b
mention the alert and notice accessors on the flash
2010-08-27 22:45:35 +02:00
Joost Baaij
9f4d3a1ebe
expand cookie examples with signed and permanent methods
2010-08-27 22:31:02 +02:00
Joost Baaij
60de0e56b7
call-seq directive makes rdoc cry and replaces method names with a curly brace; besides it doesn't add anything when you only list one call example since this is obviously documented already
2010-08-27 22:20:53 +02:00
Sam Aarons
04a8601d5e
Fix em_mysql2 error in rake db:create
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-27 14:57:16 -03:00
José Valim
d0e067f61b
Add missing require.
2010-08-27 14:56:58 -03:00
Santiago Pastorino
f95ba5c262
Make InstanceTagMethods#value_before_type_cast raise if the model don't respond to attr_before_type_cast or attr method
...
[#3374 ] [#5471 state:committed]
2010-08-27 09:08:04 -03:00
Jeremy Kemper
f98694b624
Ruby 1.9: be sure to explicitly reference toplevel constants within BasicObject deprecation proxies
2010-08-26 23:17:03 -07:00
Łukasz Strzałkowski
1ac20839a7
Fixed broken test suite - there was problem with namespacing in DeprecatedConstant class
2010-08-26 23:15:42 -07:00
wycats
8baba5f13e
Fix a subtle bug involving RAILS_ROOT
2010-08-26 23:15:31 -07:00
wycats
dbb547a056
Fix up constant deprecation to be less dependent on load order
2010-08-26 23:11:52 -07:00
Carlos Antonio da Silva
0aefbe52a0
Removing some unuseful begin/end and refactor prompt_option_tag a bit
...
[#5469 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-08-27 01:18:42 -03:00
Jamison Dance
6398eba240
Merge branch 'master' of github.com:lifo/docrails
2010-08-26 21:20:22 -06:00
Jamison Dance
4d8158d9e5
fix sentence fragment in validates_associated caution
2010-08-26 17:48:42 -06:00
Xavier Noria
27edd3f8bc
updates de title of the generators guide in the home and index
2010-08-27 00:17:04 +02:00
Xavier Noria
90a95be252
getting started guide: adds a reference to Michael Hartl's free online book in the what's next section
2010-08-26 23:49:06 +02:00
José Valim
625f7b5a5b
Be sure to call helper :all just on direct children. (Tests by Jesse Storimer)
2010-08-26 18:20:22 -03:00
José Valim
737abf25bb
Doh, be sure to store the string modification.
2010-08-26 18:20:14 -03:00
Joost Baaij
6eed7b36a2
escape constant names
2010-08-26 23:10:00 +02:00
Joost Baaij
c28d46a92d
Reflect how CSRF protection now works and refer to the Security Guide for more information
2010-08-26 23:03:30 +02:00
Joost Baaij
ca36326706
cleanup of ActionController::Metal inline documentation
2010-08-26 22:32:40 +02:00
Joost Baaij
930102968a
Escape 'caching' when used in a sentence; remove unnessesary quotes
2010-08-26 21:58:57 +02:00
Joost Baaij
d3bc97050a
Merge branch 'master' of github.com:lifo/docrails
2010-08-26 21:33:35 +02:00
Joost Baaij
80ae74dea7
Prevent any warnings from being printed during RDoc generation
2010-08-26 21:31:32 +02:00
James Miller
0631bf4baf
Simplify render :partial
2010-08-26 12:27:44 -07:00
José Valim
818858ac1d
Do not modify frozen strings in place.
2010-08-26 16:25:53 -03:00
James Miller
2bcac56ab4
Prefer modern idiom for rendering partials on a collection
2010-08-26 12:10:21 -07:00
José Valim
ca1f3a5596
Update CHANGELOG.
2010-08-26 16:07:54 -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
José Valim
84cab320bc
Ensure templates like template.html are found but still uses the proper virtual path.
2010-08-26 16:07:54 -03:00
James Miller
a88fb2fd1b
Getting started guide: typo
2010-08-26 10:00:11 -07:00