Ravinder Singh
db28d407f7
Create tmp directories if required before starting server [ #3907 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-31 16:02:59 +02:00
Ryan Bigg
1a054459cb
Fix missing quote and remove core ext explanation.
2010-03-31 11:48:42 +01:00
Ryan Bigg
2d86124e8d
More header shuffling, scope all the "Require Rails" sections INSIDE the "Require Rails" section.
2010-03-31 11:04:28 +01:00
Ryan Bigg
1a9dc79058
Went through from the top down to line 650 fixing up discrepancies between new rails and old guide.
2010-03-31 10:50:13 +01:00
Ryan Bigg
656a21edc4
Fix headers so that the TOC generates, rails/subscriber is now rails/log_subscriber and "Finish" ActionController Railtie.
2010-03-31 00:36:44 +01:00
Xavier Noria
0fc1f92ac9
<%=izes and adds doctype to guides
2010-03-30 23:02:05 +02:00
Joshua Peek
53e16d8011
Missed a few spots in railties
2010-03-30 14:18:08 -05:00
José Valim
41b45d5655
Bring rdoc tasks back to plugins.
2010-03-30 14:41:58 +02:00
José Valim
ffcd44144a
Remove deprecated model_subclass since it was never published.
2010-03-30 14:41:58 +02:00
Xavier Noria
ce3864aa36
periods are not metacharacters within character classes
2010-03-30 01:55:06 -07:00
José Valim
ebcc4c5e74
Remove if/else branch when generating the documentation since we are simply inspecting the load path.
2010-03-30 10:00:46 +02:00
postmodern
f9e84a9e5a
Changed gem_path to yield the path found in $LOAD_PATH to a block.
...
* This allows gems not found in $LOAD_PATH to be safely ignored by the
rails documentation task.
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-30 09:58:39 +02:00
Michael Koziarski
bc298152f8
Fix syntax error and avoid the use of unless/else.
2010-03-30 14:31:16 +13:00
wycats
4aded43b73
Replace the placeholder base_hook API with on_load. To specify some code that
...
should run during framework load do:
ActiveSupport.on_load(:action_controller) do
# Code run in the context of AC::Base
end
2010-03-29 17:08:50 -07:00
José Valim
331327d391
Just inspect load paths to generate the documentation.
2010-03-30 01:34:06 +02:00
wycats
b94c4080e5
Revert "Ruby 1.9: use ruby-debug19. [ #3949 state:resolved]"
...
This wasn't the issue here; we need to beef up the docs and speak to
Wayne and Mark about installation.
This reverts commit da238dafd7c242eb75ae37e6243b61baf763e3d0.
2010-03-30 01:32:26 +02:00
Jeremy Kemper
4fbcde43e3
Ruby 1.9: use ruby-debug19. [ #3949 state:resolved]
2010-03-30 01:32:26 +02:00
Jeremy Kemper
af8852d1ad
Work without bundler
2010-03-29 16:25:52 -07:00
wycats
a509b0b18f
Revert "Ruby 1.9: use ruby-debug19. [ #3949 state:resolved]"
...
This wasn't the issue here; we need to beef up the docs and speak to
Wayne and Mark about installation.
This reverts commit da238dafd7c242eb75ae37e6243b61baf763e3d0.
2010-03-29 14:07:12 -07:00
Jeremy Kemper
da238dafd7
Ruby 1.9: use ruby-debug19. [ #3949 state:resolved]
2010-03-29 13:59:20 -07:00
José Valim
74efe4c253
Revert "Update USAGE docs for generators."
...
This reverts commit d31e03f3566471f2ad04dc6dace889fae962f7a8.
2010-03-29 18:46:04 +02:00
José Valim
9a865ee25e
Revert "Reorganized app/test directory. [ #3057 state:resolved]"
...
This reverts commit a0dc6755db71b33aebccdb95fd0dd7097c934c04.
2010-03-29 18:36:28 +02:00
Andrew White
d39ec81955
Make Railties RDoc task work again [ #4291 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com>
2010-03-28 22:45:03 -07:00
Rizwan Reza
d31e03f356
Update USAGE docs for generators.
2010-03-28 22:38:46 -07:00
Rizwan Reza
a0dc6755db
Reorganized app/test directory. [ #3057 state:resolved]
...
Run 'rake update:test_directory' to reorganize your already generated apps.
test/functional -> test/controllers
test/functional -> test/controllers
test/unit/helpers -> test/helpers
test/unit/**/*_observer_test.rb -> test/observers
test/unit -> test/models
2010-03-28 22:38:46 -07:00
wycats
bd69589143
preinitializer.rb is no longer needed, so remove it from the guide and replace with better suggestion. [ #4279 state:resolved]
2010-03-28 19:08:06 -07:00
wycats
201e8986b1
Updated asset_template_path to asset_path and have it also support a String [ #4247 state:resolved]
2010-03-28 18:46:18 -07:00
Craig R Webster
49bc6a249e
Allow customisation of asset path generation using a proc.
...
Set config.action_controller.asset_path_template to a proc that takes one
argument - the direct, unchanged asset path - and returns a path to that asset
using the scheme that your assets require.
This is useful if you have a setup which scales by introducing new application
servers where the mtime of the asset files may not be the same as those of the
asset files on your previous servers, but it does require your web servers to
have knowledge of the asset template paths that you rewrite to so it's not
suitable for out-of-the-box use. An example of configuring asset path
generation and rewriting these paths using Apache is included in
actionpack/lib/action_view/helpers/asset_tag_helper.rb.
Signed-off-by: wycats <wycats@gmail.com>
2010-03-28 18:35:05 -07:00
Rizwan Reza
de2b0147d0
Reapply Rizwan's patch, but memoize Bundler.load.specs in an ivar. [ #3697 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com>
2010-03-28 17:42:53 -07:00
wycats
c99194c7be
Merge remote branch 'rizwan/restrict'
2010-03-28 11:06:46 -07:00
Xavier Noria
76f024ac8d
adds missing requires for Object#blank? and Object#present?
2010-03-28 14:15:02 +02:00
Rizwan Reza
835f5d0269
Rails 3 application can run performance tests now. [ #4171 state:resolved]
2010-03-28 15:03:25 +04:30
Rizwan Reza
155f0be16b
Changes migration number to version due to ambiguity. [ #3065 state:committed]
2010-03-28 12:16:46 +04:30
Rizwan Reza
b4c91de946
Merge remote branch 'rails/master'
2010-03-28 12:04:00 +04:30
Xavier Noria
4b4f69b9bf
AS guide: warns about the singleton classes of nil, true, and false according to what http://redmine.ruby-lang.org/repositories/diff/ruby-19/object.c?rev=27022 blesses
2010-03-28 04:08:54 +02:00
watsonian
edd59b7bb9
Fixes typo in environments/production.rb template.
2010-03-27 19:02:05 -07:00
Ryan Bigg
93d80672f4
Adding the initialization guide to docrails.
2010-03-28 02:03:32 +01:00
José Valim
140cc9caf6
Do not check for a valid const name in Rails 3.0 applications. [ #4200 state:resolved]
2010-03-27 10:46:17 +01:00
wycats
56a86c2191
Make X-Sendfile default to "" so it works correctly in dev mode.
...
Provide a default in production.rb that can be modified, so that
people who care about sendfile performance in production mode can
get better performance easily.
2010-03-26 16:58:55 -07:00
wycats
197904341f
Merge branch 'master' into docrails
2010-03-26 15:10:24 -07:00
José Valim
b3a0aed028
Just assert for 'Hi' in generated mailer tests.
2010-03-26 20:25:54 +01:00
José Valim
395d6648ce
Move application configuration to the application configuration object, remove railtie_name and engine_name and allow to set the configuration object.
2010-03-26 18:47:55 +01:00
José Valim
fc266d7ec2
Revert "find railties and engines by name [4264 state:resolved]"
...
This reverts commit 7b8399b80cfff58cfe2313187ca3c803de8c8955.
2010-03-26 16:12:35 +01:00
Edgars Beigarts
0848c862f0
Make script/dbconsole work with oracle (sqlplus <username>[/<password>][@<connect_identifier>])
...
[#3773 state:resolved]
2010-03-26 15:54:04 +01:00
José Valim
f5ee855f43
Improve heuristic for railties default name, otherwise railties may be named :railtie, :engine and so on.
2010-03-26 14:41:48 +01:00
Josh Susser
7b8399b80c
find railties and engines by name [4264 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-26 14:25:45 +01:00
Rizwan Reza
94381b2d5a
Routes guide being rewritten, done till :singular.
2010-03-25 04:04:19 +04:30
Brian Doll
3807db8e99
Fixing spelling error in activerecord guide in the validation callbacks section, closing issue #2
2010-03-24 09:29:55 -07:00
wycats
45e8cf59df
init.rb in plugins is here to stay
2010-03-23 16:35:14 -07:00
José Valim
5c41cb77d9
Ensure lib/rails/initializers/*.rb also works for gems.
2010-03-23 23:50:53 +01:00
Joshua Peek
e47a1d7865
Load plugin initializers from lib/rails/initializers/*.rb
2010-03-23 15:36:32 -05:00
José Valim
b9f551ac15
Explicitly require files before monkey patching them.
2010-03-23 17:48:29 +01:00
Sebastian Martinez
a5e98d7067
updated Rakefile with new app generator path [ #4258 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-23 17:35:19 +01:00
Sebastian Martinez
10825be40b
rake tasks should use the new app generator path [ #4257 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-23 14:26:27 +01:00
José Valim
05ec99eed9
bin/rails should use the new app generator path.
2010-03-23 14:12:58 +01:00
José Valim
b61f6f5980
Load generators from both lib/rails/generators and lib/generators. Using the former since it's less obstrusive.
2010-03-23 13:40:41 +01:00
Xavier Noria
926ff0e0a1
AS guide: documents Module#remove_possible_method
2010-03-23 00:19:17 +01:00
wycats
0b16c7602d
No -rubygems needed
2010-03-22 14:17:49 -07:00
wycats
d03af48a7d
Provide a better error if thor is missing
2010-03-22 14:09:00 -07:00
José Valim
e8a80cdded
Controller generators should use routes shortcut.
2010-03-22 21:07:37 +01:00
José Valim
fb89aba8b4
Killing fixtures in mailer before they kill me (they usually lead to very brittle tests).
2010-03-22 21:07:37 +01:00
Jeremy Kemper
4884f28c80
Also revert mailer generator test changes in 8b50f89
2010-03-21 16:18:32 -07:00
Jeremy Kemper
49416550fe
Fix regression introduced in 8b50f89. Generated views mentioned the wrong path.
2010-03-21 16:07:21 -07:00
Sebastian Martinez
0137566c85
do not support 'data-url' anymore, just use 'href' [ #4236 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-21 19:31:54 +01:00
José Valim
8b50f89ba7
Make ERB generators more flexible and customizable.
2010-03-21 19:30:42 +01:00
Joshua Peek
87db863fa2
Remove invalid builtin tests since we aren't adding that dir to the
...
load path anymore
2010-03-20 15:14:59 -05:00
Joshua Peek
fcc6b12e77
Autoload Rails::Info
2010-03-20 14:03:43 -05:00
Joshua Peek
14b7452c57
Require info controller from info routes
2010-03-20 13:33:25 -05:00
Joshua Peek
f38e89cfba
Move railties/builtin into lib
2010-03-20 12:34:21 -05:00
Sam Ruby
80095c54bd
Controller generators should generate tests when action is supplied. [ #3421 state:resolved]
2010-03-20 00:51:56 +01:00
Xavier Noria
dea701bd2c
normalizes titles of release notes guides, and adds them to the home page
2010-03-19 21:49:48 +01:00
Xavier Noria
02be581f45
s/guides.rails.info/edgeguides.rubyonrails.org/ in a few places, and makes some links relative to work in either site
2010-03-19 21:39:42 +01:00
Carlhuda
7f53dca1a1
Fix protect_against_forgery
2010-03-19 11:11:02 -07:00
José Valim
562154fcbc
Controller generator now creates routes as well [ #4233 state:resolved]
2010-03-19 18:12:54 +01:00
Sebastian Martinez
b395c81e3c
removed useless require line
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-19 11:08:06 +01:00
Xavier Noria
61f6749fb7
guides generator skips untouched guides by default, override with ALL=1
2010-03-17 23:03:48 +01:00
José Valim
7a5da21481
Use human_name in scaffold.
2010-03-17 00:09:43 +01:00
Xavier Noria
b6edffa640
AS guide: completes section about loading AS core extensions within a Rails application
2010-03-16 23:38:08 +01:00
Xavier Noria
f9edf89d57
AS guide: adds extension to file name
2010-03-16 22:52:39 +01:00
José Valim
0db68fd140
Change functional tests to make use of a setup block.
2010-03-16 16:53:54 +01:00
Chris Griego
0f504a5646
Deprecated framework rake tasks should exit with non-zero exit code [ #4177 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-16 11:10:30 +01:00
Xavier Noria
9209f7bafc
guides generation: undoes output buffer workaround, more refactors
2010-03-15 22:06:27 +01:00
Pratik Naik
03a62f4afe
Merge remote branch 'mainstream/master'
2010-03-15 19:46:03 +00:00
Xavier Noria
f53fddf366
AS guide: documents a use case for :instance_writer, based on a remark of Jeremy
2010-03-15 16:11:13 +01:00
Xavier Noria
ac202a26ce
refactors some bits of the guides generator, ONLY selection accepts prefixes, guides generation fixed for 1.9, revised string safety in a few spots
2010-03-15 09:57:08 +01:00
Caio Chassot
94a60a5600
In app_generator, fix hardcoded bundle
call to derive the bundle executable name from Thor::Util.ruby_command.
...
This ensures that eg. when `rails` is called from `ruby1.9`, `bundle1.9` is called.
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-12 21:33:39 +01:00
Kieran Pilkington
9268b598bb
Add a check to ensure that the application name does not already exist, i.e. String or Module are part of ruby [ #3872 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-12 21:33:39 +01:00
José Valim
b8f7ba2935
Prettify generators description whenever using the default stack [ #4143 status:resolved]
2010-03-12 21:33:39 +01:00
José Valim
611744ebd3
Load the environment before executing rails console. [ #3905 status:resolved]
2010-03-12 20:41:41 +01:00
José Valim
2b0611b9bb
Revert "Always load the environment before executing any command. [ #3905 status:resolved]"
...
This reverts commit 16846553b8866eab2aa3b128a2a23a221a25f7e3.
2010-03-12 20:40:34 +01:00
Pratik Naik
e68bfaf1fe
Merge remote branch 'mainstream/master'
...
Conflicts:
activerecord/lib/active_record/base.rb
railties/lib/rails/configuration.rb
railties/lib/rails/log_subscriber.rb
2010-03-12 16:00:01 +00:00
José Valim
16846553b8
Always load the environment before executing any command. [ #3905 status:resolved]
2010-03-12 12:53:22 +01:00
Jeremy Kemper
d56e8be22d
Revert "Rake task for generating Rails documentation updated to support Bundler."
...
Incredibly slow. Fix gem_path to not load the bundle fresh each call.
This reverts commit 58796dcfc0d74fa3def752fa8b779f725f0747f0.
2010-03-11 13:23:58 -08:00
Rizwan Reza
58796dcfc0
Rake task for generating Rails documentation updated to support Bundler.
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-11 13:44:57 +01:00
Xavier Noria
8cc55777a8
release notes: minor edit pass
2010-03-11 12:29:17 +01:00
Mikel Lindsaar
0db8af1099
Updating 3.0 release notes with cookie session store and secret changes
2010-03-11 22:18:28 +11:00
Mikel Lindsaar
6932b180f8
Updating command line guide
2010-03-11 22:12:04 +11:00
Mikel Lindsaar
965fe59bff
Merge branch 'master' of github.com:lifo/docrails
2010-03-11 22:07:48 +11:00
Jeremy Kemper
3d5d0286b3
Update scaffold to use <%= form_for
2010-03-10 16:04:12 -08:00
José Valim
6cee532a44
Added alert to layouts on scaffold.
2010-03-09 22:21:51 +01:00