Commit Graph

18086 Commits

Author SHA1 Message Date
Xavier Noria
b422cda2eb let String#strip_heredoc handle blank lines even if they are not indented 2010-08-30 10:39:34 +02:00
Mikel Lindsaar
58d0e2c23c Adding option to ActiveResource to allow you to not reset the previously stored requests and responses by passing false to respond_to 2010-08-29 22:54:19 -07:00
Mikel Lindsaar
a299642293 Updating documentation on ActiveResource HTTP Mock and also adding test coverage 2010-08-29 22:54:19 -07:00
Jeremy Kemper
b861942691 Update CHANGELOGs for 3.0 release and upcoming 3.1 2010-08-29 22:06:48 -07:00
Jeremy Kemper
ef572cad0a Bump arel to 1.0.1 2010-08-29 16:32:54 -07:00
Loren Segal
01948fa8af Add .yardopts so YARD can document Rails 2010-08-30 06:59:36 +09:00
Xavier Noria
475ea14fd0 implements String#strip_heredoc 2010-08-29 23:52:38 +02:00
Xavier Noria
a302a333f8 revises a deprecation message 2010-08-29 22:47:18 +02:00
Santiago Pastorino
a70675cd94 -v=1.0.0 not needed 2010-08-29 16:53:20 -03:00
Santiago Pastorino
c1dbdecda5 Make CI install bundler stable since 1.0 is out 2010-08-29 16:19:44 -03:00
Santiago Pastorino
96c88db9f8 No more beta or rc on guides 2010-08-29 15:30:01 -03:00
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