Commit Graph

21523 Commits

Author SHA1 Message Date
Oge Nnadi
d3dce774ef Edited README.rdoc via GitHub 2011-04-11 12:57:52 -07:00
Oge Nnadi
a43abfafd2 Rewording 2011-04-11 12:54:46 -07:00
Jo Liss
c59456a1d9 removed :nodoc: from ActionController::MimeResponds
So we don't miss out on the nice documentation of the respond_to and
respond_with instance methods.  Also added :nodoc: to protected method.
2011-04-10 11:47:22 +02:00
Vijay Dev
e836fc1bd2 fix example query 2011-04-06 15:14:47 +05:30
Vijay Dev
c327ef4d65 Merge branch 'master' of github.com:lifo/docrails 2011-04-06 13:01:12 +05:30
Ryan Bigg
92e6255b58 Merge branch 'master' of github.com:lifo/docrails
* 'master' of github.com:lifo/docrails: (57 commits)
  Made the defaults section a little more readable and more to the point, giving a overview of the possibilities.
  Added information about default values
  added .'s to headings in the initialization textile page
  s/ERb/ERB/g (part II)
  s/ERb/ERB/g
  Bump up erubis to 2.7.0
  Implicit actions named not_implemented can be rendered
  Gem::Specification#has_rdoc= is deprecated since rubygems 1.7.0
  default_executable is deprecated since rubygems 1.7.0
  Trivial fix to HTTP Digest auth MD5 example
  Moved Turn activation/dependency to railties
  fix typo
  Direct logging of Active Record to STDOUT so it's shown inline with the results in the console [DHH]
  Add using Turn with natural language test case names if the library is available (which it will be in Rails 3.1) [DHH]
  require turn only for minitest
  Use Turn to format all Rails tests and enable the natural language case names
  Improve docs.
  pass respond_with options to controller render when using a template for api navigation
  only try to display an api template in responders if the request is a get or there are no errors
  when using respond_with with an invalid resource and custom options, the default response status and error messages should be returned
  ...
2011-04-05 21:22:38 +10:00
Ryan Bigg
357578256f Correct documentation on url_for. It doesn't call to_s, but rather to_param 2011-04-05 21:22:10 +10:00
simply-phi
ac07da8fc7 Made the defaults section a little more readable and more to the point, giving a overview of the possibilities. 2011-04-04 11:04:07 +02:00
simply-phi
f323a8fed4 Added information about default values 2011-04-04 11:03:59 +02:00
Vijay Dev
4ac719686c Merge branch 'master' of github.com:lifo/docrails 2011-04-04 02:43:12 +05:30
Xavier Noria
3e24e9ebc2 Merge branch 'master' of git://github.com/lifo/docrails 2011-04-03 22:22:03 +02:00
orta
4c323bc25a added .'s to headings in the initialization textile page 2011-04-03 15:19:32 +02:00
Akira Matsuda
9bf5cddd28 s/ERb/ERB/g (part II) 2011-04-03 16:59:37 +09:00
Akira Matsuda
bd3cdeea35 s/ERb/ERB/g
The author of ERB sais, his eRuby implementation was originally named "ERb/ERbLight" and then renamed to "ERB" when started bundled as a Ruby standard lib.
http://www2a.biglobe.ne.jp/~seki/ruby/erb.html
2011-04-03 12:47:51 +09:00
Santiago Pastorino
a000fc58b8 Bump up erubis to 2.7.0 2011-04-02 23:56:52 -03:00
Santiago Pastorino
cc58fe79ac Implicit actions named not_implemented can be rendered 2011-04-02 23:47:50 -03:00
Santiago Pastorino
99da42c299 Gem::Specification#has_rdoc= is deprecated since rubygems 1.7.0 2011-04-02 00:35:33 -03:00
Santiago Pastorino
9de8dea2e8 default_executable is deprecated since rubygems 1.7.0 2011-04-01 23:58:37 -03:00
Jon Cooper
c17b8e4047 Trivial fix to HTTP Digest auth MD5 example 2011-03-31 16:22:52 -07:00
David Heinemeier Hansson
0eb6e5e270 Moved Turn activation/dependency to railties 2011-03-31 16:20:59 -07:00
burningTyger
63e4e218c5 fix typo 2011-04-01 00:12:58 +02:00
David Heinemeier Hansson
caf0a72c85 Direct logging of Active Record to STDOUT so it's shown inline with the results in the console [DHH] 2011-03-31 14:33:24 -07:00
David Heinemeier Hansson
6eff04499e Add using Turn with natural language test case names if the library is available (which it will be in Rails 3.1) [DHH] 2011-03-31 12:25:04 -07:00
David Heinemeier Hansson
edf7c9a6a3 require turn only for minitest 2011-03-31 12:17:28 -07:00
David Heinemeier Hansson
b27057731c Use Turn to format all Rails tests and enable the natural language case names 2011-03-31 12:11:03 -07:00
José Valim
7a9dafd96c Improve docs. 2011-03-31 19:00:05 +02:00
Josh Kalderimis
b45302d767 pass respond_with options to controller render when using a template for api navigation
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-03-31 18:53:36 +02:00
Josh Kalderimis
48404a751d only try to display an api template in responders if the request is a get or there are no errors
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-03-31 18:53:27 +02:00
Josh Kalderimis
9766997f4c when using respond_with with an invalid resource and custom options, the default response status and error messages should be returned
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-03-31 18:53:21 +02:00
Amaia Castro
a64abdda25 Explain in the method doc that you need to call respond_to at the class level in order to use respond_with. 2011-03-31 13:19:19 +02:00
Vijay Dev
4c76f68948 Merge branch 'master' of github.com:lifo/docrails 2011-03-31 16:34:07 +05:30
Josiah Ivey
f44d85a030 Grammar tweaks to the guides guidelines 2011-03-31 00:16:45 -05:00
David Heinemeier Hansson
2867093365 Delegate pending to skip if Minitest is available 2011-03-30 21:16:29 -07:00
Aaron Patterson
58c3ec1b7b use assert_equal so we get normal error messages along with our custom failure message 2011-03-30 15:29:52 -07:00
Ryan Bigg
cf07da0929 Symbol to proc is preferred over longer form of map 2011-03-31 06:59:48 +11:00
Ryan Bigg
04d5decfd3 Cleanup of named_scope documentation 2011-03-31 06:48:05 +11:00
Ryan Bigg
7a34ab7d60 Fix typo in named_scope documentation 2011-03-31 06:48:05 +11:00
Eadz
6a1715111e add space to conform with style 2011-03-31 06:48:05 +11:00
Eadz
45d5d6b268 Documented undocumented feature: Class methods on your model are automatically available on scopes 2011-03-31 06:48:05 +11:00
Santiago Pastorino
4f90b28e06 Bring back AMo#i18n_key method 2011-03-30 16:29:43 -03:00
Aaron Patterson
d688a9d084 Merge branch 'master' of github.com:rails/rails
* 'master' of github.com:rails/rails:
  Make action_method? public and change implicit rendering to override it instead.
2011-03-30 09:55:02 -07:00
Aaron Patterson
cfb6f77ac0 TableAlias leg ordering has changed, so change accordingly 2011-03-30 09:54:46 -07:00
José Valim
ba51aa0b1b Make action_method? public and change implicit rendering to override it instead. 2011-03-30 17:22:05 +02:00
Aaron Patterson
2be383b946 test against AR class rather than the relation (thanks Andrew White!) 2011-03-29 17:50:39 -07:00
Aaron Patterson
0471fc9f1c Merge branch 'master' into zomg
* master: (51 commits)
  order is not guaranteed by this select, so add an order and call first!
  oracle stores this with microseconds, so convert to seconds before comparing
  make sure that active connections are not cleared during test when an exception happens
  clearing active connections in the ConnectionManagement middleware if an exception happens
  proxy body responses so we close database connections after body is flushed
  Pass the proper method_name instead of hardcoding to action_name.
  Quote find_in_batches ORDER BY clause [#6620 state:resolved]
  Delegate first!, last!, any? and many? to scoped
  Dont call authenticate_or_request_with_http_basic twice
  Remove 'warning: ambiguous first argument' when running ActionPack tests
  Change exists? so that it doesn't instantiate records [#6127 state:resolved]
  Move mapper_test to the appropriate location
  Update the wildcard route to be non-greedy by default, therefore be able to match the (.:format) segment [#6605 state:resolved]
  Fix examples
  Added Base.http_basic_authenticate_with to do simple http basic authentication with a single class method call [DHH]
  make sure we have an active database connection before running each connection management test
  adding active_connections? to the connection pool for finding open connections
  adding active_connection? to the connection pool
  testing app delegation from the ConnectionManagement middleware
  namespacing connection management tests. ❤️
  ...
2011-03-29 17:38:43 -07:00
Aaron Patterson
58becf1165 order is not guaranteed by this select, so add an order and call first! 2011-03-29 17:27:32 -07:00
Aaron Patterson
6067d29a1f oracle stores this with microseconds, so convert to seconds before comparing 2011-03-29 17:09:22 -07:00
Aaron Patterson
c7b7c6ad1c make sure that active connections are not cleared during test when an exception happens 2011-03-29 15:47:16 -07:00
Aaron Patterson
3b2a032677 clearing active connections in the ConnectionManagement middleware if an exception happens 2011-03-29 15:42:32 -07:00
Aaron Patterson
e5246092d1 proxy body responses so we close database connections after body is flushed 2011-03-29 15:37:07 -07:00