José Valim
558ee6e95c
Handle edge cases in the previous patch.
2010-08-02 16:40:02 +02:00
Fred Wu
cdad483dff
Improved how AppGenerator generates the application name. It now detects the current app name whenever possible. This means that renaming the residing directory will not effect the app name generated by AppGenerator.
...
[#5225 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-08-02 16:30:20 +02:00
Santiago Pastorino
e6331b1e97
Makes rails destroy scaffold don't duplicate routes.draw do |map| |map| when using the deprecated syntax
...
[#5263 state:committed]
2010-08-02 10:55:09 -03:00
Prashant P. Shah
3b44b52fb0
Corrected the rake test:units and test:functionals description [ #5251 state:committed]
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-08-01 22:17:15 -03:00
Johan Lundström
96f8325116
DHH forgot to remove JS, CSS in generated index.html [ #5261 state:resolved]
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-07-31 20:38:12 -03:00
Xavier Noria
05e0fa9cfb
the main page of the API generated by the doc:rails task is README
2010-07-30 21:50:53 +02:00
Steve Agalloco
b823e50a54
fix for rails app generator when using --pretend option
...
[#5245 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-07-30 11:55:07 -03:00
Santiago Pastorino
e68e88e3ad
This version is going to be outdated when new nokogiri versions are released
2010-07-29 23:46:25 -03:00
Xavier Noria
755af49755
edit pass to apply API guideline wrt the use of "# =>" in example code
2010-07-30 02:30:04 +02:00
wycats
123eb25fd1
Add a header that tells Internet Explorer (all versions) to use the best available standards support. This ensures that IE doesn't go into quirks mode because it has been blacklisted by too many users pressing the incompatible button. It also tells IE to use the ChromeFrame renderer, if the user has installed the plugin.
...
This guarantees that the best available standards support will be used on the client.
2010-07-27 19:25:07 -07:00
rohit
5d3e8ee2bd
Fix app generator so that it uses the right app_name during rails:update rake task. [ #5207 state:committed]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-07-27 11:34:59 +02:00
Chad Fowler
b6f9932561
fix bad logic in determining if in rails app subdir
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
2010-07-26 16:40:46 -05:00
David Heinemeier Hansson
d283ca34a9
Fix deprecation message on info screen
2010-07-26 16:35:27 -05:00
David Heinemeier Hansson
856fc4bbc3
Prep for RC
2010-07-26 12:53:25 -05:00
Santiago Pastorino
514624e53c
Fixes usage message when running rails without --dev on a cloned rails repo
2010-07-26 12:51:48 -03:00
Xavier Noria
6aa1253588
Merge remote branch 'docrails/master'
2010-07-26 00:23:57 +02:00
Santiago Pastorino
b0b9bf3204
Object#returning removed
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-07-25 23:30:27 +02:00
Xavier Noria
92669b8320
application generation: --skip-testunit and --skip-activerecord renamed to --skip-test-unit and --skip-active-record respectively
...
Reason is their proper spellings are "Test::Unit" and "Active Record".
Option names and descriptions have been revised, as well as some method
names and minor details here and there.
2010-07-25 22:55:38 +02:00
Jack Dempsey
9a9fb12623
Fix small middlewares typo
2010-07-24 15:28:45 -04:00
Santiago Pastorino
d16c5cc99b
Change some missing README -> README.rdoc
2010-07-22 01:47:06 +08:00
Santiago Pastorino
e107c208f0
Make config.generators accept string namespaces, you can do now config.generators.test_framework 'rspec' for instance
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-07-21 17:17:23 +02:00
Santiago Pastorino
79d6f314c6
We are doing the same in this conditions
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-07-21 17:17:22 +02:00
Santiago Pastorino
6ce761c8d9
This example is better for guides and gem/plugins docs
2010-07-20 13:08:03 -07:00
José Valim
fa98eca75b
Add console hook to force ActiveRecord::Base to be loaded when console starts avoiding reference loops.
2010-07-18 11:02:07 +02:00
José Valim
c6e2058637
Add skip_eager_load!, skip_autoload! and friends to path objects.
2010-07-17 09:55:11 +02:00
Xavier Noria
ef165b355d
minor pass to generated code in application.rb related to :defaults
2010-07-16 21:54:13 +02:00
Santiago Pastorino
114fa4d431
Adds application.js when app is generated with -J and clear javascript_expansions[:defaults]
2010-07-17 01:59:51 +08:00
Santiago Pastorino
041e47b326
Explain how to change javascript default files
2010-07-17 01:59:50 +08:00
Andrew Kaspick
684fb5e7d5
upgrade prototype to be compatible with rails.js [ #5109 state:committed]
...
Signed-off-by: Xavier Noria <fxn@hashref.com>
2010-07-14 12:47:27 +02:00
Benjamin Quorning
7e075e6247
Fixed many references to the old config/environment.rb and Rails::Initializer
2010-07-13 13:00:21 +02:00
Xavier Noria
c9ae2c11eb
application.rb: revises the comment for autoload_paths so that is assumes less from the user, and unifies punctuation
2010-07-09 19:09:47 +02:00
Sudara
e848ab527c
Allow a PID file to be specified to rails server [ #5031 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-07-08 22:35:02 +02:00
Akira Matsuda
bf5d154567
Print proper "Usage:" messages for "rails plugin" command
...
* suppress outputting "Unknown command:" when no command were specified
* output the "Usage:" message when no plugin names were given
[#5043 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-07-07 16:20:56 -07:00
Akira Matsuda
ff44cc2844
whitespace
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-07-07 16:20:51 -07:00
Xavier Noria
64c75d6618
Merge remote branch 'docrails/master'
2010-07-07 12:58:46 +02:00
Mark Hayes
db0530e4ba
Fixed typo in Rails::Generators::Base [ #5051 state:resolved]
2010-07-06 14:52:20 +05:30
Madjo DIAPENA
3cb5375832
ARGV.empty? is useless. If ARGV is empty, ARGV.first != "new" will always be true
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-07-04 18:49:28 +02:00
José Valim
0189fb76e3
reload_routes! was still referencing old Rails::Application.
2010-07-02 08:13:52 +02:00
José Valim
53b34e8476
Avoid calls to Rails::Application since this is not the official API.
...
Your application should *always* reference your application const (as Blog::Application) and Rails.application should be used just internally.
2010-07-01 18:43:44 +02:00
Jaime Iniesta
d167cfd62b
Fixes README for generated apps with Rails 3 (rails *new* myapp, and Welcome aboard text)
2010-07-01 17:34:35 +05:30
José Valim
0253bf425e
Change :notification to :notify (ht: m4n)
2010-06-29 14:07:54 -07:00
wycats
d4c7d3fd94
Create a deprecation behavior that triggers a notification for deprecation notices, and make the behaviors independent of the environment names.
...
* In Rails 2.3 apps being upgraded, you will need to add the deprecation
configuration to each of your environments. Failing to do so will
result in the same behavior as Rails 2.3, but with an outputted warning
to provide information on how to set up the setting.
* New Rails 3 applications generate the setting
* The notification style will send deprecation notices using
ActiveSupport::Notifications. Third-party tools can listen in to
these notifications to provide a streamlined view of the
deprecation notices occurring in your app.
* The payload in the notification is the deprecation warning itself
as well as the callstack from the point that triggered the
notification.
2010-06-29 12:20:15 -07:00
José Valim
b5b42af33f
Make the sentinel flag for route a bit more robust.
2010-06-28 17:09:09 +02:00
José Valim
e4f9132f6a
Do not trigger the old mapper to avoid deprecation messages.
2010-06-28 15:36:52 +02:00
Jeremy Kemper
f61d923d28
Update to latest rails.js
...
[#4411 state:resolved]
2010-06-27 16:42:30 -07:00
José Valim
9b19a6f16c
A few changes were done in this commit:
...
* Added :autoload to engines path API and redefine usage to be in sync with 6f83a5036d8a9c3f8ed7;
* Do not autoload code in *lib* for applications (now you need to explicitly require them). This makes an application behave closer to an engine (code in lib is still autoloaded for plugins);
* Always autoload code in app/ for engines and plugins. This makes engines behave closer to an application and should allow us to get rid of the unloadable hack required when controllers inside engines inherit from ApplicationController;
2010-06-28 01:22:32 +02:00
wycats
ccc8eba4dc
Change the generated Gemfile to resolve, via documentation, the issue of rspec generators being unavailable in development mode
2010-06-25 12:19:22 -07:00
David Heinemeier Hansson
6682cce038
Dont reload the environment, just not needed bro
2010-06-24 17:38:46 -05:00
Prem Sichanugrist
67ee6c38b9
Remove the --singeleton option from scaffold generator.
...
It turned out to be that scaffold for singeleton resource will always depend on another model, and it's not possible at the moment to make the application tests pass after generate the singeleton scafold. So, it would be better to remove it for now and probably provide another generator, such as singeleton_scaffold, in which also require the depended model name.
[#4863 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-24 20:17:59 +02:00
José Valim
6788db824a
Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [ #4816 state:resolved]
2010-06-24 13:23:43 +02:00