Justin George
731d4392e4
Change event namespace ordering to most-significant first [ #4504 state:resolved]
...
More work still needs to be done on some of these names
(render_template.action_view and render_template!.action_view particularly)
but this allows (for example) /^sql/ to subscribe to all
the various ORMs without further modification
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-02 22:45:54 +02:00
Xavier Noria
efba1d4227
Merge commit 'rails/master'
...
Conflicts:
railties/guides/source/index.html.erb
2010-05-01 02:23:47 -07:00
Carl Lerche
95c98799a4
Fix a bug in the generators from the previous commit
2010-04-30 16:32:18 -07:00
Carlhuda
785493ffed
Provide a mechanism for overriding the entire generator via a class that handles the individual elements of generating a new Rails application
2010-04-30 13:48:06 -07:00
Carlhuda
0761d1b0f7
Set up app generator class to make it easier to for alt-stacks to override targeted areas
2010-04-30 13:48:06 -07:00
José Valim
cde168edbb
Update generators to use thor 0.13.6 with simpler source_root handling.
2010-04-30 12:42:12 +02:00
Carlhuda
c54c84b7b4
Move ActionMailer generator to AM
2010-04-29 16:45:57 -07:00
Jeremy Kemper
20f0e9f320
Fix docs typo: app.middlewares -> app.middleware
2010-04-29 11:43:09 -07:00
Jeremy Kemper
fef31be2bc
Add missing deprecation requires
2010-04-29 11:34:48 -07:00
Ben Orenstein
7c7e00b552
Small grammatical fix.
2010-04-29 12:46:10 -04:00
Ben Orenstein
f632df2828
Make output match code.
2010-04-29 12:41:56 -04:00
Ben Orenstein
90ef772ee6
Fix sentence fragment and improve wording in generated README.
2010-04-29 12:37:18 -04:00
José Valim
3dfcb56e45
ActiveRecord middlewares should be inserted before AD::Cascade [ #4493 state:resolved].
2010-04-29 13:24:35 +02:00
Ravinder Singh
e9a9ef094e
warn user if options are given before application name [ #3435 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-29 13:00:17 +02:00
José Valim
1bea5c755c
Ops. Rename performance to profiler.
2010-04-29 09:31:06 +02:00
José Valim
1b816d5024
The rake task :environment now loads config/environment.rb instead of initializing the application on its own. This fixes [ #4492 state:resolved] and also avoids the application being initialized twice in some rake tasks.
2010-04-29 08:39:52 +02:00
Jeremy Kemper
7100c9d6ca
Switch driver to pg. [ #3635 state:resolved]
2010-04-27 17:08:01 -07:00
Anil Wadghule
53c13f1aca
Use Config::CONFIG['host_os'] instead of RUBY_PLATFORM [ #4477 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-26 11:12:52 -07:00
unknown
e813ad2a42
Make db console work for all versions of ruby on Windows.
...
[#3999 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-26 10:57:44 -07:00
José Valim
9b5a1f7ac1
No need to require test and rdoc tasks.
2010-04-26 09:37:15 +02:00
José Valim
e461e1bc0e
Ensure application rake tasks and generators are loaded after the ones specified in railties/engines/rails. [ #4471 state:resolved]
2010-04-26 09:36:13 +02:00
Matthew Rudy Jacobs
5c9d23f870
Make assert_recognizes work in IntegrationTest [ #4390 state:committed]
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-24 15:42:55 -07:00
Jeremy Kemper
72a3e4b77b
Rename fieldWithErrors style to field_with_errors. Remove unused alert style.
2010-04-24 15:02:12 -07:00
José Valim
4163ccec23
Clean up the config object in ActionPack. Create config_accessor which just delegates to the config object, reducing the number of deprecations and add specific tests.
2010-04-22 12:00:13 +02:00
Andre Arko
b73177a095
Squash backtraces from Bundler.setup
2010-04-21 14:45:13 -07:00
Phil Smith
d03196c89e
Regexp.escape(load_path) in add_routing_namespaces initializer [ #4442 state:resolved]
...
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2010-04-20 08:53:46 +12:00
Sven Fuchs
9a3a4d6aef
Make i18n fallbacks configurable and fallback to the default locale by default in production [ #4428 state:resolved]
...
Allows to configure locale fallbacks through config.i18n.fallbacks. The default setting
config.i18n.fallbacks = true in production.rb will make I18n.t lookup fallback to the
I18n.default_locale if a translation could not be found for the current or given locale.
config.fallbacks = true
config.fallbacks.map = { :ca => :es }
config.fallbacks.defaults = [:'es-ES', :es]
config.fallbacks = [:'es-ES', :es]
config.fallbacks = { :ca => :es }
config.fallbacks = [:'es-ES', :es, { :ca => :es }]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2010-04-17 19:26:46 +01:00
Xavier Noria
9a4fdff0af
Merge commit 'docrails/master'
2010-04-14 01:00:03 -07:00
José Valim
c88b9337cf
Allow a Rails application to be initialized from any directory and not just from inside it (ht: Andre Arko).
2010-04-14 00:02:00 +02:00
Anil Wadghule
518891f490
Use correct RUBY_PLATFORM regex for Windows env [ #4385 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-13 12:39:03 -07:00
David Heinemeier Hansson
8116a2b981
Cleanup indention and spacing and turn errorExplanation into error_explanation now that nobody depends on it anymore
2010-04-13 12:33:34 -07:00
Jeremy Kemper
4d098327da
Fix regexp typo
2010-04-13 12:06:12 -07:00
stlruby@googlegroups.com
ee04aea3ec
Remove RAILS_ROOT from webrick_server docs.
...
Signed-off-by: wycats <wycats@gmail.com>
2010-04-12 21:28:39 -07:00
Felipe Rodrigues
a64bfc3c8e
moved rails binary to rails gem, so rubygems can find specific versions of rails [ #4382 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com>
2010-04-12 19:56:38 -07:00
Andre Arko
ca378659bc
Update the Bundler snippet for 0.9.15 and above
2010-04-12 15:44:08 -07:00
Santiago Pastorino
25cb21328a
Make dev and edge app generation options generate edge arel on Gemfile
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-12 19:48:08 +02:00
Anil Wadghule
84e46437fa
Replace 'RAILS_ROOT' to 'Rails.root' and 'RAILS_ENV' to 'Rails.env' in significant places.
2010-04-12 22:53:49 +05:30
Andrew White
788d923893
Generate module file for namespaced models [ #4230 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-12 10:57:27 +02:00
Anil Wadghule
b9b9f9ee15
Make RUBY_PLATFORM windows regex consistent [ #4345 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-12 10:56:34 +02:00
José Valim
b22d0914ac
Fix a typo in load_once_paths [ #4357 state:resolved] (ht: Kim Altintop)
2010-04-10 13:29:57 +02:00
José Valim
944637648c
Use pluralize to properly inflect the number of errors.
2010-04-10 12:45:28 +02:00
José Valim
ee309d506c
Update versions (otherwise you install a gem from source as beta3 but internally it's beta2) and update CHANGELOG.
2010-04-10 12:17:34 +02:00
José Valim
26e05efdb6
Remove error_messages_for from scaffold.
2010-04-10 11:18:20 +02:00
David Heinemeier Hansson
00ff3ba56f
Need a double escape there
2010-04-09 10:52:28 -07:00
David Heinemeier Hansson
915a0ac420
Notice/alert are out of the layout, so notice has to go back into show to make it work for scaffolding
2010-04-09 10:48:51 -07:00
Jeremy Kemper
ad22017bdc
Use thor shorthand for indicating that application.html.erb is a template
2010-04-09 10:26:49 -07:00
Jeremy Kemper
ec8e747960
Partially revert "A new application now comes with a layout and a stylesheet."
...
This reverts commit ea2c5fa8046e2f953b366adc94f0610ccfea0828.
Conflicts:
railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb
railties/test/generators/app_generator_test.rb
2010-04-09 10:04:20 -07:00
Jeremy Kemper
c44cacb070
Include app name in layout title
2010-04-09 09:49:46 -07:00
Jeremy Kemper
ea6a67cbdf
Discourage << as public API, much less config
2010-04-09 09:22:16 -07:00
Jeremy Kemper
19e6006636
Layout contents are html-safe
2010-04-09 09:14:02 -07:00