Commit Graph

5479 Commits

Author SHA1 Message Date
Ryan Bigg
26837734d6 Don't mention Rails 2.3, given that this is supposed to be a guide for Rails *3*. 2010-11-26 13:54:37 +11:00
Ryan Bigg
aab76ce199 There is no more routes_configuration_file method. 2010-11-26 13:51:35 +11:00
raggi
cb1570936d Rakefiles are executables, and rake loads rake, not rakefile code 2010-11-25 06:49:55 +08:00
Xavier Noria
85d64316a4 Merge branch 'master' of git://github.com/lifo/docrails 2010-11-23 21:59:50 +01:00
Jaime Iniesta
fd64bba648 i18n guide: fix RedCloth artifacts that were rendering bad format and broken links on 2.3 warnings 2010-11-23 17:53:59 +01:00
Santiago Pastorino
9938a3fc78 Update to Prototype 1.7
[#6042 state:committed]
2010-11-23 00:32:30 -02:00
David N. Welton
818b366c3e Merge branch 'master' of github.com:lifo/docrails 2010-11-22 16:06:28 +01:00
David N. Welton
0598bd4d2d Explain that NamedBase makes the variable 'name' available to the script. 2010-11-22 16:05:53 +01:00
Pavel Gorbokon
2515ad8a3e Fix ruby syntax errors in railties/guides docs 2010-11-22 16:37:33 +02:00
David N. Welton
8c17d30d68 Slightly more natural sounding phrase. 2010-11-22 15:09:58 +01:00
Piotr Sarnacki
115abd52b6 Ensure that app generator is not loaded twice to get rid of warnings
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-11-22 13:43:18 +01:00
Piotr Sarnacki
f821055dc7 Do not create table_name_prefix method on isolated module if the method already exists.
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-11-22 13:43:12 +01:00
Brian Alexander
51007f1dba Previous version inaccurately suggested that
resources :posts, :path => "/admin"

would route "/admin/posts" to the PostsController but it actually routed "/admin" to the PostsController
2010-11-21 19:54:05 -08:00
Xavier Noria
15fd29b3ea documents <%== in the AS guide 2010-11-21 10:17:30 +01:00
Xavier Noria
7c51d1fcf9 Spanish for "project" is "proyecto" 2010-11-21 03:29:44 +01:00
Xavier Noria
a03a3b7c31 copy-edits d773ef8 2010-11-21 03:29:44 +01:00
Jamison Dance
ffed9db269 fix some grammar issues with section 2.5 2010-11-21 03:29:44 +01:00
nosolopau
f975f35147 Spelling mistake: "Projecto" instead of "projeto" 2010-11-21 03:29:44 +01:00
Jaime Iniesta
925aeed4b6 i18n guide: fix external link to rack locale 2010-11-21 03:29:44 +01:00
Léo Hackin
f5a51a7788 Fix code for customize the error messages html adding a .html_safe of 8.3 section 2010-11-21 03:29:43 +01:00
Jaime Iniesta
f044d38192 i18n guide: this is not longer a problem 2010-11-21 03:29:43 +01:00
Jaime Iniesta
cbea139130 i18n guide: remove link to external page about 'How to encode the current locale in the URL' as it no longer exists 2010-11-21 03:29:43 +01:00
Jaime Iniesta
3c64553644 i18n guide: it's activerecord.errors.messages.record_invalid (instead of 'invalid'), and messagges typo 2010-11-21 03:29:43 +01:00
zhengjia
4a51328ae8 Minor fix on Rails:Railtie documentation 2010-11-21 03:29:43 +01:00
eparreno
3d377454db remove old school validations and replaced with new validates method. Pending: fix active_record guide 2010-11-21 03:29:43 +01:00
Aaron Patterson
938243feb9 do not require ruby-debug automatically. please require it if you have declared it as a dependency 2010-11-19 16:26:09 -08:00
Xavier Noria
902ae14e65 guides: gives clear instructions for feedback, removes links to the now archived LH project 2010-11-19 21:46:12 +01:00
Piotr Sarnacki
77fc0cc165 Ensure that initializers are executed before loading rake tasks
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-11-18 17:46:18 +01:00
José Valim
d19768b50c Facepunch failing tests. 2010-11-18 09:32:48 +01:00
Piotr Sarnacki
250fb3f6c2 Add config.action_controller.include_all_helpers, by default it is set to true.
In older rails versions there was a way to use only helpers from
helper file corresponding to current controller and you could also
include all helpers by saying 'helper :all' in controller. This config
allows to return to older behavior by setting it to false.
2010-11-18 00:20:57 +01:00
José Valim
7b2f2c8b47 Tidy up generators commits. 2010-11-17 23:32:19 +01:00
Piotr Sarnacki
aafac200be Fix generators tests on ruby 1.9
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-11-17 23:32:19 +01:00
Carl Lerche
ccd2f3ede5 Update the version.rb files to include a PRE part 2010-11-16 17:19:46 -08:00
Piotr Sarnacki
1395545404 Do not run migrations from mounted engine separately.
There is no good way now to run migrations for mounted engine in test application,
but that way of running migrations makes it really hard to run
engine in development mode and test it (you need to copy migrations
in dev mode and in that case in tests they will be run twice).

Signed-off-by: José Valim <jose.valim@gmail.com>
2010-11-16 22:58:13 +01:00
Piotr Sarnacki
510375b501 Fix plugin new --mountable: ActionController instead of ActiveController 2010-11-16 16:41:37 +01:00
Piotr Sarnacki
ced8ebcee0 Change inside_namespace method to inside_template and use it in all templates by default
The initial implementation of namespacing was based on wrong
assumptions. Namespacing path and class names in templates
should be based on current namespace and skip_namespace attribute,
but it should be not necessary to wrap content on all the templates
into additional block methods.
2010-11-16 16:38:14 +01:00
Doug Ireton
ecd0310e14 Fix misspelling of 'deprecation' in plugin_generator. 2010-11-16 15:37:29 +08:00
José Valim
bd96e45641 Fix failing tests. 2010-11-16 00:04:38 +01:00
Josh Kalderimis
1d5842b27c updated the rails guide to reflect changes in the action view railtie relating to the asset id cache code 2010-11-16 00:04:37 +01:00
Piotr Sarnacki
bf176e9c7a Do not allow to use plugin_new generator directly, you should use Usage:
rails new APP_PATH [options]

Options:
  -G, [--skip-git]            # Skip Git ignores and keeps
  -r, [--ruby=PATH]           # Path to the Ruby binary of your choice
                              # Default: /Users/drogus/.rvm/rubies/ruby-1.8.7-p302/bin/ruby
  -b, [--builder=BUILDER]     # Path to an application builder (can be a filesystem path or URL)
      [--edge]                # Setup the application with Gemfile pointing to Rails repository
      [--dev]                 # Setup the application with Gemfile pointing to your Rails checkout
      [--skip-gemfile]        # Don't create a Gemfile
  -d, [--database=DATABASE]   # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db)
                              # Default: sqlite3
  -O, [--skip-active-record]  # Skip Active Record files
  -m, [--template=TEMPLATE]   # Path to an application template (can be a filesystem path or URL)
  -J, [--skip-prototype]      # Skip Prototype files
  -T, [--skip-test-unit]      # Skip Test::Unit files

Runtime options:
  -s, [--skip]     # Skip files that already exist
  -p, [--pretend]  # Run but do not make any changes
  -f, [--force]    # Overwrite files that already exist
  -q, [--quiet]    # Supress status output

Rails options:
  -v, [--version]  # Show Rails version number and quit
  -h, [--help]     # Show this help message and quit

Description:
    The 'rails new' command creates a new Rails application with a default
    directory structure and configuration at the path you specify.

Example:
    rails new ~/Code/Ruby/weblog

    This generates a skeletal Rails installation in ~/Code/Ruby/weblog.
    See the README in the newly created application to get going. command
2010-11-16 00:04:35 +01:00
Piotr Sarnacki
b0665345f8 Allow running rails plugin new command inside rails application 2010-11-16 00:04:35 +01:00
Piotr Sarnacki
4da6d95604 Bye bye bang bang. 2010-11-16 00:04:35 +01:00
Piotr Sarnacki
ef4afed81c There is no need to make isolated? method with bang-bang, just alias isolated 2010-11-16 00:04:35 +01:00
Piotr Sarnacki
dc1250265c Deprecate plugin generator 2010-11-16 00:04:35 +01:00
Piotr Sarnacki
73443329de Add skip-gemspec option to 'plugin new' generator 2010-11-16 00:04:34 +01:00
Piotr Sarnacki
d988fa820a Update changelog with rails plugin new 2010-11-16 00:04:34 +01:00
Piotr Sarnacki
fefce1262b Don't need to support rails plugin --version 2010-11-16 00:04:34 +01:00
Xavier Noria
91a6db90cf Merge branch 'master' of git://github.com/lifo/docrails 2010-11-15 19:45:46 +01:00
James Miller
c2c2b8b962 Add HTTP Verb Constraints (:via) to routing guide 2010-11-15 09:26:57 -07:00
Jaime Iniesta
72fda46214 Merge branch 'master' of github.com:lifo/docrails 2010-11-15 00:07:35 +01:00
Jaime Iniesta
324569bb11 Getting Started guide: remove calls to f.error_messages as it has been removed from Rails 2010-11-15 00:07:25 +01:00
Santiago Pastorino
c996901913 Change deprecated syntax and use f.submit instead of submit_tag 2010-11-14 21:00:26 -02:00
José Valim
fae4264a7e Update the guides. 2010-11-14 16:22:21 +01:00
Aditya Sanghi
330d65d312 deliver_* is no more 2010-11-14 18:27:08 +05:30
Rajinder Yadav
abf225423c removed unnecessary indentation 2010-11-14 06:02:16 -05:00
Rajinder Yadav
f69784289b added note with example for using flash in redirection 2010-11-14 05:20:10 -05:00
Rajinder Yadav
23f71c431d corrected sample code to clear @_current_user class variable also 2010-11-14 05:12:01 -05:00
Rajinder Yadav
7e1f6688e9 the partial option is not required for simple partial rendering 2010-11-13 20:24:04 -05:00
Paco Guzman
d44cd370bf colorize_logging is a Rails General Configuration option not a specific option of ActiveRecord 2010-11-13 12:17:21 +01:00
Santiago Pastorino
b15d816166 Update to JQuery 1.4.4
Check out http://blog.jquery.com/2010/11/11/jquery-1-4-4-release-notes/
for information on what's new.
2010-11-12 13:02:17 -02:00
Frederick Ros
e7723baa0b Fixed the name of the 'generator option' 2010-11-11 23:02:05 +01:00
José Valim
c63600576a Remove whitespaces and add missing test. 2010-11-11 20:07:47 +01:00
José Valim
f912a359aa Merge remote branch 'drogus/plugin_new'
Conflicts:
	railties/test/generators/app_generator_test.rb
2010-11-11 19:39:21 +01:00
Rob Zolkos
bafa1533f4 skip testing framework if app created with --skip-test-unit [#5796 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-11-11 17:35:18 +01:00
José Valim
37d3266f35 Add missing autoload. 2010-11-11 17:30:24 +01:00
zhengjia
8a6ac4fc26 Remove unused Configurable in Rails::Engine and Rails::Application. Remove unnecessary railties load path in cli [#5871 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-11-11 17:29:39 +01:00
Jeff Kreeftmeijer
154e5d735e The model generator shouldn't throw warnings when using mass nouns [#5363 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-11-11 17:24:23 +01:00
Xavier Noria
c577e90f61 restores the example for fixed-width font in API guidelines 2010-11-10 23:46:00 +01:00
Santiago Pastorino
7a2be37592 Remove copy_instance_variables_from from guides 2010-11-10 19:12:10 -02:00
Denis Odorcic
b961c6c158 Remove useless cgi
[#5943 state:committed]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-11-10 16:43:26 -02:00
Rajinder Yadav
5cdb46d9fb this reads better, i don't know what the other 'so on' are, doesn't help reader imho 2010-11-09 05:05:56 -05:00
Rajinder Yadav
4e074c7cc6 added missing word to clear up meaning in my previous commit 2010-11-09 04:34:32 -05:00
Rajinder Yadav
26d314ed6a Merge branch 'master' of github.com:lifo/docrails 2010-11-09 04:31:08 -05:00
Andrew White
ef46b9f21a Strip regexp anchors from rake routes output [#5934 state:resolved] 2010-11-09 05:24:10 +00:00
Piotr Sarnacki
cc135e3b6d Allow to set dummy application path through options 2010-11-08 22:43:51 +01:00
Rajinder Yadav
4b7ac55780 removed indentation, for code style consistency and readibility 2010-11-08 04:17:56 -05:00
dmathieu
78e085b12c Use Rails.logger, not ActiveRecord::Base.logger
Because everybody is not using ActiveRecord. And the logger is not specific to it.
2010-11-08 10:14:15 +01:00
Rajinder Yadav
149f795d16 removed etc. not require 2010-11-08 04:04:18 -05:00
Rajinder Yadav
e135f13f50 added missing space and minor rewording 2010-11-08 03:58:19 -05:00
Rajinder Yadav
4d5807bcd5 corrected to Rails 3 syntax for declaring resources 2010-11-08 03:47:45 -05:00
Francesc Esplugas
e22ad7ae1d Fixes ActionMailer example error 2010-11-07 22:08:59 +01:00
José Valim
3bb1ad32bf Update to latest thor. 2010-11-04 10:39:15 -02:00
Piotr Sarnacki
d0d30e767d Fix scaffold generator to be aware of namespace in isolated engine 2010-11-03 20:48:40 +01:00
Piotr Sarnacki
cbe391b517 Add --mountable option to 'plugin new' generator which generates full mountable application (engine) 2010-11-02 17:14:53 +01:00
Piotr Sarnacki
c159b501b0 Add example rake task to 'plugin new' generator 2010-11-02 17:14:53 +01:00
Piotr Sarnacki
f9e33fc09a create_dummy_app method that allows to easily create dummy application from template 2010-11-02 17:14:53 +01:00
Piotr Sarnacki
fadad11f90 Properly skip test unit in 'plugin new' generator 2010-11-02 17:14:53 +01:00
Piotr Sarnacki
2133495b8c Properly handle other databases in 'plugin new' generator 2010-11-02 17:14:53 +01:00
Piotr Sarnacki
b6497d3b5a Skip active record properly in 'plugin new' generator 2010-11-02 17:14:52 +01:00
Piotr Sarnacki
57fae9b2c7 Use rails integration tests by default in 'plugin new' generator 2010-11-02 17:14:52 +01:00
Piotr Sarnacki
4d108cb33d We don't need to configure ActionMailer in plugin's test helper, it's configured by dummy app 2010-11-02 17:14:52 +01:00
Piotr Sarnacki
9cb9713eeb Refactor app and plugin generators to use new Thor API 2010-11-02 17:14:52 +01:00
Piotr Sarnacki
a5311ee86b Make deep copy of application generators on engine initialization.
Otherwise nested hashes will be same objects for both application and engine,
which will result in overwriting each others values on changes.
2010-11-02 17:14:52 +01:00
Piotr Sarnacki
cfbe595831 Use application's generators defaults as engine defaults to not force users to manually set it 2010-11-02 17:14:52 +01:00
Piotr Sarnacki
9e86767bb8 Do not create additional newline 2010-11-02 17:14:52 +01:00
Piotr Sarnacki
489b279fc4 Don't be verbose while creating dummy application in plugin new generator 2010-11-02 17:14:52 +01:00
Piotr Sarnacki
013fc0a418 No need to require 'app_base', it's required in app_generator 2010-11-02 17:14:51 +01:00
Piotr Sarnacki
46fdb3197d Pass more options to test/dummy in 'plugin new' generator 2010-11-02 17:14:51 +01:00
Piotr Sarnacki
671d1469c6 Add --full option to 'plugin new' generator, which generates rails engine 2010-11-02 17:14:51 +01:00
Piotr Sarnacki
fdbd9df21e No need for say_step in 'plugin new' generator 2010-11-02 17:14:51 +01:00