Commit Graph

95 Commits

Author SHA1 Message Date
David Heinemeier Hansson
cbd367b7fa Added :before option to authentication
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@352 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-09 16:43:21 +00:00
David Heinemeier Hansson
75fca04590 Added authentication framework to protect actions behind a condition and redirect on failure. See ActionController::Authentication for more.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@351 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-09 15:20:00 +00:00
David Heinemeier Hansson
df79e135ac Added first stab at page and fragment caching
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@346 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-08 23:32:11 +00:00
David Heinemeier Hansson
98c02b9656 Simplified the set_cookie method and made it indifferent to symbol or string as name
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@343 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-06 23:25:19 +00:00
David Heinemeier Hansson
efe0348486 Added the possibility of passing nil to UrlHelper#link_to to use the link itself as the name
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@338 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-05 00:38:09 +00:00
David Heinemeier Hansson
3e74ea89bc Added MemCacheStore for storing session data in Danga's MemCache system [Bob Cottrell]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@330 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-04 02:09:38 +00:00
David Heinemeier Hansson
3e7a4ecc57 Fixed redirects when the controller and action is named the same. Still haven't fixed same controller, module, and action, though #201 [Josh]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@321 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 20:10:11 +00:00
David Heinemeier Hansson
dc79236120 Fixed problems with running multiple functional tests in Rails under 1.8.2 by including hack for test/unit weirdness
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@319 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 19:34:49 +00:00
David Heinemeier Hansson
ddcc67115c Added thread-safety to the DRbStore #66, #389 [Ben Stiglitz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@315 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 16:00:50 +00:00
David Heinemeier Hansson
ce58e5cd06 Added DateHelper#select_time and DateHelper#select_second #373 [Scott Baron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@311 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-02 15:32:01 +00:00
David Heinemeier Hansson
250a570c04 Added class declaration for the MissingFile exception #388 [Kent Sibilev]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@297 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-01 16:29:11 +00:00
David Heinemeier Hansson
60caf0e661 Added "short hypertext note with a hyperlink to the new URI(s)" to redirects to fulfill compliance with RFC 2616 (HTTP/1.1) section 10.3.3 #397 [Tim Bates]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@294 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-31 17:07:20 +00:00
David Heinemeier Hansson
2e1a27fa4d Added second boolean parameter to Base.redirect_to_url and Response#redirect to control whether the redirect is permanent or not (301 vs 302) #375 [Hodel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@293 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-31 17:04:15 +00:00
David Heinemeier Hansson
2dd2b56482 Auto-requiring of helpers should stay silent when it isn't found for whatever reason
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@290 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-31 16:48:02 +00:00
David Heinemeier Hansson
670fa63342 Fixed that @request.remote_ip didn't work in the test environment #369 [Bruno Mattarollo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@289 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-31 16:47:08 +00:00
David Heinemeier Hansson
595a4a591b Rearranging dependencies
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@279 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-29 21:19:37 +00:00
David Heinemeier Hansson
84d5519b74 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@276 5ecf4fe2-1ee6-0310-87b1-e25e094e27de 2004-12-29 21:12:47 +00:00
David Heinemeier Hansson
8efa1513ed Moved support files into Active Support
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@275 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-29 21:09:59 +00:00
David Heinemeier Hansson
5d0f633239 Moved the cookies fix to cgi_ext
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@274 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-29 21:07:50 +00:00
David Heinemeier Hansson
1b0da48fe9 Added documentation for using render_with_layout
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@272 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-29 13:36:27 +00:00
David Heinemeier Hansson
00deaf6d56 Added :host and :protocol options to url_for and friends to redirect to another host and protocol than the current.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@266 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-23 18:59:24 +00:00
David Heinemeier Hansson
d91405a415 Fixed UrlHelper#link_to_unless so it doesn't care if the id is a string or fixnum [zenspider]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@256 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-22 22:50:44 +00:00
David Heinemeier Hansson
822742164e Forgot to include the new session module
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@254 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-22 14:30:29 +00:00
David Heinemeier Hansson
951c9426ad Added search through session to clear out association caches at the end of each request. This makes it possible to place Active Record objects in the session without worrying about stale data in the associations (the main object is still subject to caching, naturally) #347 [Tobias Luetke]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@251 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-22 13:53:47 +00:00
David Heinemeier Hansson
a04b1f3d8a Added more informative exception when using helper :some_helper and the helper requires another file that fails, you'll get an error message tells you what file actually failed to load, rather than falling back on assuming it was the helper file itself #346 [dblack]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@250 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-22 13:44:16 +00:00
David Heinemeier Hansson
1eb751a021 Fixed regression with Base#reset_session that wouldn't use the the DEFAULT_SESSION_OPTIONS [adam@the-kramers.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@239 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-21 10:47:02 +00:00
David Heinemeier Hansson
506fd8ea57 Fixed error rendering of rxml documents to not just swallow the exception and return 0 (still not guessing the right line, but hey)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@238 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-21 02:05:12 +00:00
David Heinemeier Hansson
dad37cfafa FormHelper should only use *_before_type_cast if they available on the model
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@229 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-19 16:39:56 +00:00
David Heinemeier Hansson
c8b24915c6 Fixed that textilize and markdown would instantiate their engines even on empty strings. This also fixes #333 [Ulysses]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@224 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-19 13:33:51 +00:00
David Heinemeier Hansson
eeae1eecb9 Added documentation for automatic layout inclusion #328 [Marcel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@220 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-19 12:56:31 +00:00
David Heinemeier Hansson
7b5ed66122 Added respondence to *_before_type_cast for all attributes to return their string-state before they were type casted by the column type. Added use of *_before_type_cast for all input and text fields.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@215 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-19 11:25:55 +00:00
David Heinemeier Hansson
61960e7b37 Added Request#port_string to get something like ":8080" back on 8080 and "" on 80 (or 443 with https).
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@214 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-18 18:01:28 +00:00
David Heinemeier Hansson
a7532f9d5f Added Request#domain (returns string) and Request#subdomains (returns array).
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-18 17:19:15 +00:00
David Heinemeier Hansson
3e6fe858b6 Added POST support for the breakpoint retries, so form processing that raises an exception can be retried with the original request [Florian Gross]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@211 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-18 15:01:58 +00:00
David Heinemeier Hansson
974ed23034 Tagged the 0.9.1 release
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@204 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-17 17:19:05 +00:00
David Heinemeier Hansson
f918d40ee6 Fixed a bug that would cause an ApplicationController to require itself three times and hence cause filters to be run three times [evl]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@201 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-17 00:25:32 +00:00
David Heinemeier Hansson
2f3db152ec Made the last tweaks before 0.9
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-16 19:43:27 +00:00
David Heinemeier Hansson
0b554201bb Updated documentation
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@194 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-16 17:45:37 +00:00
David Heinemeier Hansson
8bc82278dd Added that controllers will now attempt to require a model dependency with their name and in a singular attempt for their name.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@175 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-16 02:06:11 +00:00
David Heinemeier Hansson
db6179d12f Fixed DateHelper#date_select so that you can pass include_blank as an option even if you don't use start_year and end_year #59 [what-a-day]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-15 12:47:50 +00:00
David Heinemeier Hansson
df28bdd7ab Documented select, collection_select, and country_select #304 [Ulysses]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@163 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-15 11:49:23 +00:00
David Heinemeier Hansson
17a74d90b6 Added that controllers will now search for a layout in $template_root/layouts/$controller_name.r(html|xml), so PostsController will look for layouts/posts.rhtml or layouts/posts.rxml and automatically configure this layout if found #307 [Marcel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@160 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-15 11:39:22 +00:00
David Heinemeier Hansson
c80f974fa3 Added FormHelper#radio_button to work with radio buttons like its already possible with check boxes [Michael Koziarski]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@151 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-14 13:48:27 +00:00
David Heinemeier Hansson
aaf6956c47 Added TemplateError#backtrace that makes it much easier to debug template errors from unit and functional tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@145 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-13 23:28:10 +00:00
David Heinemeier Hansson
922f817a5a Added the option of passing false to :module or :controller_prefix in order to "break out" of a module or prefix
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@142 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-13 11:35:48 +00:00
David Heinemeier Hansson
8e1f1ee442 Moved require_association to associations.rb and added methods for resetting the inheritable attributes on subclasses
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@125 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-12 16:14:20 +00:00
David Heinemeier Hansson
b141bdbb32 Display error messages on scaffolded form pages
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@124 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-12 14:14:37 +00:00
David Heinemeier Hansson
19c62a7ee9 Fixed the default button name on forms generated with form
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@123 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-12 13:48:58 +00:00
David Heinemeier Hansson
0052f41009 Added option to ERB templates to swallow newlines by using <% if something -%> instead of just <% if something %>
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@121 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-12 13:02:20 +00:00
David Heinemeier Hansson
6b284b87f2 Fixed CgiRequest so that it'll now accept session options with Symbols as keys (as the documentation points out) [Suggested by Andreas]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@117 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-12 12:43:48 +00:00