Commit Graph

2336 Commits

Author SHA1 Message Date
Mark Turner
99f3997520 make rake routes print the name of a Rack endpoint app [#5338 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-08-15 16:22:57 -03:00
Santiago Pastorino
b451de0d6d Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;) 2010-08-14 04:12:33 -03:00
Santiago Pastorino
919888503d Moves local_request? to require.local?
[#5361 state:committed]
2010-08-13 17:35:52 -03:00
Nick Sieger
f5c5cdd4ae Missed one spot for --skip-active-record, which means that new Gemfile isn't set up right
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-08-11 00:42:45 -03:00
wycats
6767946374 Improve best_standards_support to use only IE=Edge in development mode 2010-08-09 11:48:31 -07:00
Xavier Noria
3cbe111439 Merge remote branch 'docrails/master' 2010-08-05 01:15:57 +02:00
Xavier Noria
d191db76e0 standarizes the use of the article "an" for "SQL" and "SQLite" 2010-08-05 01:09:09 +02:00
José Valim
7e2399a42f Revert "Put lib back on the autoload path"
This was causing engines/gems to eager load everything in lib. Another fix is comming soon.

This reverts commit 02a5842cd09bd75de4c2fdb6b474c6c0ff163ebf.
2010-08-04 14:13:50 +02:00
Simone Carletti
7745f716a1 Fixed Railtie Rdoc examples not properly formatted [#4918 state:resolved]
Signed-off-by: Simone Carletti <weppos@weppos.net>
2010-08-04 13:27:14 +02:00
wycats
02a5842cd0 Put lib back on the autoload path 2010-08-03 14:57:55 -07:00
Curtis Cablegram
e1142dfcae Refactor log-tailer to depend on File#eof? rather than File#mtime
[#5220 state:resolved]

Eliminate 1 instance variable and 1 local variable.

Signed-off-by: José Valim <jose.valim@gmail.com>
2010-08-03 10:50:25 +02:00
Curtis Cablegram
1466f312ba Change log-tailer to properly track multi-byte characters.
When end-of-line is represented within a file as "\r\n",
it is represented in memory as a single "\n".  This patch eliminates
the discrepancy between size on disk and size in memory.

Signed-off-by: José Valim <jose.valim@gmail.com>
2010-08-03 10:50:21 +02:00
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