Commit Graph

185 Commits

Author SHA1 Message Date
David Heinemeier Hansson
79e85edd71 Added reverse order of deleting fixtures, so referential keys can be maintained #247 [Tim Bates]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@38 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-01 12:25:04 +00:00
David Heinemeier Hansson
d4d981d707 Added a real reference to the irc channel, and updated the name of the network to the right name in the Rails docs [imajes]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@37 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-01 12:10:02 +00:00
David Heinemeier Hansson
9200dad7c9 script/new_controller should create directory for views even when no actions are specified [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@36 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-01 12:07:07 +00:00
David Heinemeier Hansson
eec4638eb6 Fixed infinite loop when environment is missing in database.yml
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@35 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-01 11:28:52 +00:00
David Heinemeier Hansson
bc80460115 Added relative path search for sqlite dbfiles in database.yml (if RAILS_ROOT is defined) #233 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@34 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-01 11:26:47 +00:00
David Heinemeier Hansson
d6d875bfb4 Moved the global require_* out of the classes so they actually work without stack overflows
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@33 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-30 19:13:34 +00:00
David Heinemeier Hansson
d82f73ecab Abolished ActionController::Base.require_or_load in favor of require_dependency and ActiveRecord::Base.require_or_load in favor of require_association. Both methods are now also available in the global namespace when you need to require dependencies or associations outside of whats done automatically.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@32 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-30 18:52:20 +00:00
David Heinemeier Hansson
5b38d85571 AbstractApplicationController and the individual controllers are now completely reloaded on each request if "reload_dependencies" is set to true. This makes it possible to REMOVE methods and constants and have the changes reflected. Beaware that this is still not possible for models, though.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@31 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-30 17:19:01 +00:00
David Heinemeier Hansson
38e5fe97be Pass on the original exception
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@30 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-30 17:11:40 +00:00
David Heinemeier Hansson
2fc559a4ca A change in attempt to combat periodical errors with FCGI processes hanging for a long time before returning the response
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@29 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-30 17:11:14 +00:00
David Heinemeier Hansson
bcfd649de8 Silenced warnings from reloading files
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@28 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-30 17:10:32 +00:00
David Heinemeier Hansson
ac3c8a54f8 Silence errors occurring when reloading classes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@27 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-30 16:25:08 +00:00
David Heinemeier Hansson
a682d20873 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@26 5ecf4fe2-1ee6-0310-87b1-e25e094e27de 2004-11-26 16:33:23 +00:00
David Heinemeier Hansson
9e1fb3235d Handle empty cookie jars gracefully -- dont pout!
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@25 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-26 16:30:44 +00:00
David Heinemeier Hansson
55af595214 Renamed CookieContainer to CookieJar to be cute. Its a private container anyway, so what do you care?
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@24 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-26 14:52:59 +00:00
David Heinemeier Hansson
08a2249e90 Report to logger when a cookie is set
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@23 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-26 02:16:05 +00:00
David Heinemeier Hansson
177cae5483 Allow symbols to be used as names for setting cookies
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@22 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-26 02:11:42 +00:00
David Heinemeier Hansson
defda16b83 Allow symbols to be used as keys for setting cookies
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@21 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-26 02:09:38 +00:00
David Heinemeier Hansson
d0c90331f1 Added a new container for cookies that makes them more intuative to use. The old methods of cookie and @cookies have been deprecated.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@20 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-26 02:04:35 +00:00
David Heinemeier Hansson
b62937acbd Added ActionController#cookies[]= as an alias for cookie "name", "value" -- youll still need to use the latter if you have options to set.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@19 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-26 01:12:46 +00:00
David Heinemeier Hansson
bd5985331c Added ActionController#cookies[] as a reader for @cookies that'll return the value of the cookie instead of the cookie object itself. NOTE: If you were using the old accessor, this could potentially break your code -- if you expect a full cookie object!
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@18 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-26 01:09:59 +00:00
David Heinemeier Hansson
e15b371777 symbolize_strings_in_hash shouldnt change receiver -- this should fix the bug with dump_schema in the rakefile
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@17 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-26 00:50:49 +00:00
David Heinemeier Hansson
7022dd9c05 Keep quiet about failing to load association classes. People know what theyre doing.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@16 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-26 00:19:47 +00:00
David Heinemeier Hansson
d8207adb5f Added the opportunity to defined method_missing on a controller which will handle all requests for actions not otherwise defined #223 [timb]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@15 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-25 23:51:46 +00:00
David Heinemeier Hansson
7ed0894c37 Put establish_connection back in...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@14 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-25 22:34:24 +00:00
David Heinemeier Hansson
55f2fcff1d Fixed bad chars in public/.htaccess [imajes]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@13 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-25 22:07:29 +00:00
David Heinemeier Hansson
18d614040a Fixed AbstractRequest#remote_ip for users going through proxies - Patch #228 [Eric Hodel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@12 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-25 16:39:18 +00:00
David Heinemeier Hansson
43704662ef Dont include svn directories in packages
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@11 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-25 16:31:27 +00:00
David Heinemeier Hansson
14b80d0f1d Cleaned up the Rakefile
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@10 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-25 16:27:59 +00:00
David Heinemeier Hansson
9e41445360 Consolidated and better commented the environment files
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-25 16:22:07 +00:00
David Heinemeier Hansson
064877cab8 Added option to establish_connection where you'll be able to leave out the parameter to have it use the RAILS_ENV environment variable
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-25 16:03:33 +00:00
David Heinemeier Hansson
a09824cfcc Dump development database, not test database
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-25 15:53:30 +00:00
David Heinemeier Hansson
1042de2370 Added Request#ssl? which is shorthand for @request.protocol == "https://"
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-24 19:46:30 +00:00
David Heinemeier Hansson
e0b904e74f Allow form_tag with no arguments (resulting in a form posting to current action) - Patch #236
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-24 01:15:16 +00:00
David Heinemeier Hansson
db045dbbf6 Initial
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-24 01:04:44 +00:00