Commit Graph

6383 Commits

Author SHA1 Message Date
Sasha Gerrand
b97e6300ef - Fixed typo in association parameters configuration (again) 2011-05-09 18:14:44 +10:00
Sasha Gerrand
e0fdbfd33a - Fixed typo in the example of a self join on a model 2011-05-09 12:23:24 +10:00
Sasha Gerrand
fda9c7d0c8 - Moved foreign key parameter to correct location for self join on a model example 2011-05-09 12:20:44 +10:00
Gonçalo Silva
a43f95d235 added a note about profiling options to the generators 2011-05-09 01:00:04 +01:00
Vijay Dev
d6ff2eea0b Include examples for negative ordinalize in the guide 2011-05-09 00:30:14 +05:30
Vijay Dev
668cb42f94 improve comment in wrap_parameters template 2011-05-09 00:02:27 +05:30
Josh Kalderimis
b2451f4a7f renamed mass-assignment scopes to roles, updated code, tests, docs and security guide 2011-05-08 16:43:29 +02:00
José Valim
80bf68aa1b prepend the assets route instead of appending, closes #436 2011-05-08 12:59:04 +02:00
José Valim
30db3a82f6 Merge pull request #430 from dlee/methodoverride
Logs should show overridden method; Issue 426
2011-05-08 03:33:22 -07:00
Vijay Dev
197f3f07d6 Included more details on Rails coding conventions (from LH Source Style page) 2011-05-08 15:12:18 +05:30
Jordi Romero
bfff5eac77 Add alias r for rails runner 2011-05-07 20:12:34 -07:00
Gonçalo Silva
aec7456f81 Merge branch 'master' of https://github.com/rails/rails into performance_test
Conflicts:
	activesupport/lib/active_support/testing/performance.rb
2011-05-08 03:54:55 +01:00
Vijay Dev
e35ba99e4b remove unnecessary use of 'Example' 2011-05-07 22:38:00 +05:30
Vijay Dev
9d6f28d234 update readme to reflect app/assets 2011-05-07 21:40:34 +05:30
Arun Agrawal
4addc99d19 Updated change log for jdbc* adapters template. 2011-05-07 21:24:21 +05:30
José Valim
c444b0f67b ADdd missing requires (thanks to @arunagw) 2011-05-07 13:35:21 +02:00
José Valim
9cc18c52fa Merge pull request #263 from CvX/master
Corrected dbconsole usage message
2011-05-07 03:34:28 -07:00
David Lee
17a91a6ef9 Logs should show overridden method; Issue 426 2011-05-07 03:04:26 -07:00
Xavier Noria
fa8623b52e adds comments clarifying the role of SharedGeneratorTests 2011-05-07 00:11:50 +02:00
Aditya Sanghi
5e235278c4 Made language consistent with the rest of the comments in the file. 2011-05-06 13:07:14 -07:00
Jason Rudolph
cb2d811ebb Add test to verify production rake tasks flush logger on exit 2011-05-06 12:25:11 -04:00
Jason Rudolph
59982acd63 Always flush logger at exit
Prior to this change, running code via script/runner would demonstrate
different logging behavior than running the same code via a rake task.
In production mode the script/runner approach would always flush the
logger, but the rake-based approach would not automatically flush the
logger. This discrepancy violates the principle of least surprise, and
it could lead to the loss of important production logging data.

This change removes special-case code in the "runner" command, and
replaces it with a general solution to ensure that the logger gets
flushed at exit. This solution works for "runner", "console", "server",
rake tasks, and any other process that loads the Rails environment.
2011-05-06 12:21:21 -04:00
Aditya Sanghi
a8cfceca55 be consistent 2011-05-06 21:02:20 +05:30
Aditya Sanghi
cdf1842caa review fixes 2011-05-06 20:59:15 +05:30
Aditya Sanghi
9b5c29038d default orm and test_framework to false; change application.rb template accordingly 2011-05-06 20:29:11 +05:30
Aditya Sanghi
75e1e2175d When skipping skip active record, mark config.generators.orm to false; LH 5796 remainder 2011-05-06 18:04:20 +05:30
Daniel Martin
1f1989dee0 Take into account the Rack::Server :SSLEnable option when building the application's URL 2011-05-06 07:22:27 +01:00
José Valim
785ee65ddf Ensure params wrapper settings are not inherited and calculated each time. 2011-05-06 07:11:06 +02:00
Paul Morganthall
6df7a223ca Restore emphasis on 'application name'. 2011-05-05 12:19:01 -07:00
Jason Voegele
f649d137c0 Merge branch 'master' of github.com:lifo/docrails 2011-05-05 10:03:07 -07:00
Jason Voegele
0f7827ca34 Added info on using Ehcache as cache store. 2011-05-05 09:22:03 -07:00
Paul Morganthall
210ebd3623 Rails 3 requires the "new" command to create a new project. 2011-05-05 09:05:40 -07:00
José Valim
5e1960ea20 Merge pull request #394 from splattael/fix_rake_routes_shows_custom_assets
Display custom asset routes in `rake routes`
2011-05-05 03:32:55 -07:00
Peter Suschlik
97f9000cf2 Display custom asset routes in rake routes 2011-05-05 12:14:40 +02:00
Jan Xie
ebc5ef0e66 add tests for performance test 2011-05-05 17:15:22 +08:00
José Valim
3e9bb5459c Merge pull request #390 from arunagw/jruby_openssl
Adding jruby-openssl in Gemfile by default. #jruby
2011-05-05 00:30:42 -07:00
José Valim
65fd004da4 Merge pull request #391 from bradleypriest/patch-1
Tidying up the language in wrap_parameters.rb
2011-05-05 00:24:58 -07:00
Bradley Priest
a9fb5116d7 Tidying up the language in wrap_parameters.rb 2011-05-04 23:04:30 -07:00
Arun Agrawal
2f331fd9b2 Adding jruby-openssl in Gemfile by default. #jruby 2011-05-05 08:30:26 +05:30
David Heinemeier Hansson
e99c1e3a3b No longer need to reference mysql2 from git 2011-05-04 21:08:36 -05:00
David Heinemeier Hansson
169ae75e09 Prepare for beta1 2011-05-04 20:21:05 -05:00
David Heinemeier Hansson
9f062970ca Dont show the assets mount in rake routes 2011-05-04 19:24:41 -05:00
Santiago Pastorino
bd4831d699 Bump up rack-cache, tzinfo and thor 2011-05-04 16:47:48 -03:00
Xavier Noria
47e1cca5dc Merge branch 'master' of git://github.com/lifo/docrails 2011-05-04 20:15:00 +02:00
Vijay Dev
2076295aba commented meta code 2011-05-04 23:42:29 +05:30
Vijay Dev
3e7a8ccdc4 formatting results in comments 2011-05-04 23:38:21 +05:30
José Valim
92661b0c50 Move sandbox to AR and pass the sandbox as a value. This way, other ORMs like Datamapper can also have their own sandboxing in rails console. 2011-05-04 16:47:35 +02:00
José Valim
b9bba555ca Remove defined?(ActiveRecord) and use the railtie hook instead. 2011-05-04 16:32:24 +02:00
Xavier Noria
cea3b3cc9d Merge branch 'master' of git://github.com/lifo/docrails 2011-05-04 14:51:04 +02:00
Xavier Noria
897318f4ee fixes typo in railties/CHANGELOG (spotted by Vijay Dev) 2011-05-04 12:10:38 +02:00
Arun Agrawal
dd9200c32e Fixed tests for new_plugin_generator. 2011-05-04 15:07:06 +05:30
Xavier Noria
d9c39c3ae9 restores the -j option, but now it accepts the name of any library
If passed "foo", a gem "foo-rails" is added to the Gemfile
and "foo" and "foo_ujs" are required in the application
JavaScript manifest.
2011-05-04 10:33:53 +02:00
Xavier Noria
5d2cdb190a removes the :update_ujs task in railties 2011-05-04 10:33:53 +02:00
Xavier Noria
33567d1d7b jQuery is no longer vendored 2011-05-04 10:33:53 +02:00
backspace
3b795c12d7 Fix typo in Factory Girl description 2011-05-03 15:41:11 -05:00
José Valim
1ca81238b5 Add static_cache_control as configuration option and set a default for test. Should improve performance in acceptance tests. 2011-05-03 13:07:39 +02:00
José Valim
06ddda0a5f We no longer depend on those git repos. 2011-05-03 12:56:57 +02:00
David Heinemeier Hansson
2fbbd08616 Use require_self from latest Sprockets 2011-05-02 19:24:49 -05:00
José Valim
83e35b9c08 Allow ignore_accept_header through configuration option. 2011-05-02 23:39:42 +02:00
David Heinemeier Hansson
79a9bebcbf Merge pull request #359 from sikachu/params_wrapper.
Add `ActionController::ParamsWrapper` to wrap JSON parameters into a nested parameters.
2011-05-02 14:08:44 -07:00
Prem Sichanugrist
8c9e4d5202 Add ActionController::ParamsWrapper to wrap parameters into a nested hash
This will allow us to do a rootless JSON/XML request to server.
2011-05-03 03:21:43 +07:00
Vijay Dev
09edaf4964 removed reference to verify method 2011-05-02 17:39:46 +05:30
Vijay Dev
527036ebd1 removed verify docs (feature removed in Rails3) 2011-05-02 17:31:00 +05:30
Joshua Peek
f76726c09d Use sprockets beta gem 2011-05-01 23:23:31 -07:00
Sebastian Martinez
9fa080e703 Update security guide with #new and #create respect mass-assignment 2011-05-02 00:15:36 -03:00
Sebastian Martinez
ca608b8c9c Bring this back on the contributing guide. 2011-05-01 12:28:16 -03:00
Vijay Dev
d1f7656448 remove info about adding verified tag 2011-05-01 16:15:53 +05:30
Vijay Dev
4760464efb fix GitHub guides url 2011-05-01 15:46:46 +05:30
Xavier Noria
2fbf302149 Merge branch 'master' of git://github.com/lifo/docrails
Conflicts:
	railties/guides/source/contributing_to_ruby_on_rails.textile
2011-05-01 11:16:31 +02:00
Santiago Pastorino
754c2dd2e1 Change from LH to github way of autoclosing issues 2011-04-30 02:16:50 -03:00
Xavier Noria
b2aacc346c Prototype and Scriptaculous are no longer vendored, but provided by prototype-rails from now on, also the -j option of the application generator is removed 2011-04-30 03:53:24 +02:00
Mike Gehard
bf3a3c22c0 Removed so info about assigning to specific devs and adding tags. I don't believe that you can do that in GitHub issues. Remove state:committed notes as they also don't exist in GitHub issues. 2011-04-29 19:19:25 -06:00
Santiago Pastorino
9ef4b70b20 Update jquery-ujs and prototype-ujs 2011-04-29 21:44:40 -03:00
Santiago Pastorino
5076264163 Make update_ujs task update the right files 2011-04-29 21:44:05 -03:00
Sebastian Martinez
1302bf295a Added missing word on guide 2011-04-29 21:22:33 -03:00
David Heinemeier Hansson
e350641d02 Include CSRF token in remote:true calls 2011-04-29 18:22:10 -06:00
Sebastian Martinez
9c0196a6bb Upload patches is for LH, we use pull requests on GitHub now 2011-04-29 21:18:49 -03:00
Dan Pickett
1efaed5af1 Merge branch 'master' of github.com:lifo/docrails 2011-04-29 19:18:10 -04:00
Dan Pickett
85c8d73642 update contributors guide to reflect GitHub use
* outlines how to review pull requests
* outlines how to issue pull requests
* changed all references from LH => GH
2011-04-29 19:17:34 -04:00
Brian Cardarella
564fe7f633 Fixed comment 'config.asset' => 'config.assets' 2011-04-29 14:17:40 -07:00
Xavier Noria
cc35d5c9e7 JavaScript expansions are ignored if the application uses the asset pipeline, warn the user 2011-04-29 22:14:34 +02:00
Stefan Rohlfing
4c50a0f800 Edited railties/guides/source/routing.textile via GitHub 2011-04-28 00:25:03 -07:00
Vijay Dev
001a5a6496 document the reorder method(fb215110401c70cfc7013c6e2ad5753fa4e374e9) 2011-04-28 01:50:00 +05:30
Vijay Dev
089ee31aad update the Array#from behaviour changes - returns [] if index exceeds array length 2011-04-27 22:21:50 +05:30
David Heinemeier Hansson
e84788e60c Relevant options closer together 2011-04-27 08:55:26 -06:00
Josh Kalderimis
a009c3b4b9 minor git sources formatting change in railties app_base.rb 2011-04-27 22:05:58 +08:00
Ganesh Kumar
bd2444d1a8 enable uglifier gem as new version of execjs is relased 2011-04-27 20:50:09 +08:00
David Heinemeier Hansson
c57320d769 Prem fixes 1.9 engine test issue 2011-04-26 12:46:28 -06:00
José Valim
e36befbdd7 Merged pull request #279 from miloops/434d757.
Fix console to accept [environment] [options] as specified in docs.
2011-04-26 11:15:42 -07:00
Vijay Dev
c1132f7093 added the list of reversible commands in the newer migrations 2011-04-26 23:40:47 +05:30
Vijay Dev
b105dc441b minor changes in migrations guide 2011-04-26 23:18:55 +05:30
Prem Sichanugrist
d4259d8932 Change from self.(up|down) to (up|down) method 2011-04-26 23:33:39 +07:00
Prem Sichanugrist
72822800d5 Update guide to use change method in various places after migration generator has changed. 2011-04-26 23:32:03 +07:00
Prem Sichanugrist
e6898e3b60 Change examples in guide to reflect changes from XML -> JSON 2011-04-26 22:23:57 +07:00
Vishnu Atrai
16d3266144 jdbcpostgresql support added into template. 2011-04-26 01:00:37 +05:30
Aaron Patterson
17fec021d1 Merged pull request #300 from arunagw/jdbc_test.
Start Adding jdbcmysql support to new rails template.
2011-04-25 09:20:40 -07:00
Piotr Sarnacki
d4bea35f1a Make ActionController::Base.modules_for_helpers and ActionController::Base.all_helpers_from_path public methods 2011-04-25 15:02:41 +02:00
Piotr Sarnacki
820c0feda3 Explicitly define main_app proxy 2011-04-25 14:56:58 +02:00
Piotr Sarnacki
e38b4436a5 Add Engine#helpers method which loads all the engine's helpers 2011-04-25 13:44:27 +02:00
David Heinemeier Hansson
723a0f82c4 Go with latest Sass directly 2011-04-25 06:34:43 -05:00
José Valim
2bc48561d5 Fix tests. 2011-04-25 11:14:39 +02:00
Prem Sichanugrist
f2fc921447 No need to check for both full and mountable.
All mountable engine are considered `full?` already.
2011-04-25 15:30:58 +08:00
Prem Sichanugrist
a1c31eca47 Add app/assets/images directory to plugin new generator 2011-04-25 15:30:58 +08:00
David Heinemeier Hansson
05ce0007db Temporarily disable uglifier until a new version depending on execjs 0.2.0 can be released (tomorrow?) 2011-04-24 20:34:22 -05:00
David Heinemeier Hansson
b306502286 Merge branch 'master' of github.com:rails/rails 2011-04-24 20:33:33 -05:00
Josh Kalderimis
f3b9d3aba8 added config.active_record.whitelist_attributes which creates an empty whitelist of attributes available for mass assignment for all models in your app 2011-04-24 09:58:12 +02:00
Josh Kalderimis
b3ba36830b updated the security guide on the updated mass-assignment security scopes addition, and assign_attributes in AR 2011-04-24 09:56:48 +02:00
Vijay Dev
dcee094b22 indentation fixes 2011-04-24 02:17:06 +05:30
Arun Agrawal
51854de52c Adding jdbcsqlite3 name in comment. 2011-04-24 01:59:20 +05:30
Arun Agrawal
d59a9507cb Looks more friendly. 2011-04-24 00:17:19 +05:30
Arun Agrawal
b335533e16 jdbcsqlite3 support added into template. #jruby 2011-04-23 19:03:24 +05:30
David Heinemeier Hansson
8d7efe6a4e Stop adding actual dummy tests (they clutter up the real ones in a new app), just show how its done 2011-04-23 13:22:30 +02:00
Xavier Noria
af1b48926f Merge branch 'master' of git://github.com/lifo/docrails
Conflicts:
	activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
2011-04-23 01:11:24 +02:00
Xavier Noria
ec33de5dcb copy-edits 2f0dca5 2011-04-23 00:54:19 +02:00
Ronnie Miller
3050497a54 Grammer fix on note about wildcard routes 2011-04-22 14:50:52 -07:00
David Heinemeier Hansson
3f7a434d2e The example uses erb 2011-04-22 23:38:03 +02:00
Vijay Dev
e46e106c54 fix block alignment 2011-04-23 03:06:06 +05:30
José Valim
013d9016ca Use .erb in the test. 2011-04-22 23:25:52 +02:00
Vijay Dev
b22f39ec6f fix indentation 2011-04-23 02:54:07 +05:30
Vijay Dev
98b700e0bf add examples for array access methods 2011-04-23 02:54:07 +05:30
Vijay Dev
eac264d747 updating to_xml example to new AR api 2011-04-23 02:54:07 +05:30
Arun Agrawal
d42e43b3e5 Fixed images path in plugin_new_generator 2011-04-23 04:08:01 +08:00
Arun Agrawal
6cea2436d7 Start Adding jdbcmysql support to new rails template.
More will come for jruby app.
2011-04-23 00:41:52 +05:30
Arun Agrawal
eb599295db Images path fixed in test. 2011-04-23 02:22:12 +08:00
David Heinemeier Hansson
59ce0f695b Turn on JS/CSS compression by default 2011-04-22 18:06:59 +02:00
Joshua Peek
dab96a267e Add shorthand for js and css compressors 2011-04-22 10:49:55 -05:00
Vijay Dev
2f0dca5ee0 document the Active Support extension - String#inquiry 2011-04-20 23:25:33 +05:30
Eric Anderson
a48f8089ab Exception got moved to ActiveModel with Rails 3 2011-04-20 10:43:35 -04:00
Sebastian Martinez
aa19a7d085 Fix 'FIXME' annotation typo 2011-04-19 23:21:40 -03:00
Josh Kalderimis
68eb84d735 correction to the i18n locale filter examples 2011-04-19 22:52:00 +02:00
Xavier Noria
e162e912c9 Merge branch 'master' of git://github.com/lifo/docrails
Conflicts:
	railties/guides/source/ajax_on_rails.textile
	railties/guides/source/generators.textile
2011-04-19 21:54:10 +02:00
Xavier Noria
ad60286926 Revert "Better formatting"
No need to change this formatting.

This reverts commit 9c861e8a0e2f21959ede5f71b56f8a50996d6416.
2011-04-19 21:43:17 +02:00
David Heinemeier Hansson
c96bf840ad Add app/assets/images and include the rails.png as a sample there 2011-04-19 20:38:38 +02:00
David Heinemeier Hansson
9aac54c4bf Add note about the option to add other precompile targets 2011-04-19 20:35:53 +02:00
David Heinemeier Hansson
e6850136d6 Set a default precompile target to be the application.js, application.css, and all non-css/js files (images etc) 2011-04-19 20:33:56 +02:00
David Heinemeier Hansson
1e56c89559 Give assets access to asset_path during precompilation 2011-04-19 20:06:09 +02:00
Paco Guzman
66a2ffcdb7 Update link to Rails 2.3 guides from 2.3.8 to last release 2.3.11. Maybe someone could regenerate the guides 2011-04-19 11:24:09 +02:00
David Heinemeier Hansson
0acc6bd6cb Use proper coffee comments 2011-04-18 21:07:04 +02:00
David Heinemeier Hansson
3e33592316 Add description to assets:precompile such that it shows up in rake -T 2011-04-18 11:18:37 +02:00
Malcolm Locke
9556e9c923 best-of-bread -> best-of-breed 2011-04-18 16:02:30 +12:00
José Valim
daf7a8c0db What a lovely surprise, controller_generator_test was also failing. 2011-04-17 22:10:08 +02:00
José Valim
60547391c9 Fix more generator tests. 2011-04-17 22:08:21 +02:00
Gonçalo Silva
1c2b2233c3 Merge branch 'master' of https://github.com/rails/rails into performance_test 2011-04-17 17:08:49 +01:00
Sebastian Martinez
38e77879e0 Remove 2.3 since guides are supposed to be for Rails 3 2011-04-17 13:06:48 -03:00
José Valim
a9a2035722 Fix assets generators. 2011-04-17 11:48:15 +02:00
José Valim
3a68aec1a1 Make generators more modular, add hooks and improve test suite. 2011-04-17 11:44:52 +02:00
José Valim
8f75c3abcd Move app initializers to sprockets railtie. 2011-04-17 10:51:07 +02:00
José Valim
eb75f15a1a Generate app/* stubs directories for full plugins to show ththat it is possible to extend them. 2011-04-17 10:23:07 +02:00
Sebastian Martinez
8606fff6f1 Added CHANGELOG entry for new section additions on ActionView guide 2011-04-16 20:09:54 -03:00
Sebastian Martinez
9c861e8a0e Better formatting 2011-04-16 18:29:55 -03:00
Sebastian Martinez
558f096115 Added Templates section on ActionView guide. 2011-04-16 18:26:44 -03:00
Michal Papis
29caa46c40 Merge branch 'master' of github.com:lifo/docrails 2011-04-16 22:57:29 +02:00
Michal Papis
8c68bcf829 Added information about grouping conditional validations 2011-04-16 22:56:58 +02:00
Sebastian Martinez
143ed7edc3 Added Spacer Templates on Partials section of ActionView guide. 2011-04-16 17:32:04 -03:00
Sebastian Martinez
eecb8385b4 Added Partials section to ActionView guide. 2011-04-16 17:14:46 -03:00
Sebastian Martinez
7c9927a409 Added Using Action View with Rails guide section. 2011-04-16 16:02:05 -03:00
Piotr Sarnacki
5952d4f860 Fix plugin new generator to work with new javascript/stylesheets conventions 2011-04-16 19:59:21 +02:00
José Valim
2c54fde54d Fix generator tests. 2011-04-15 22:01:06 +02:00
José Valim
9982b5af94 Fix missing test_helper. 2011-04-15 21:32:36 +02:00
José Valim
d5ad92ced1 Make static faster as we don't have to serve multiple paths anymore. 2011-04-15 20:09:39 +02:00
José Valim
afc828828f Remove the ability for engines to serve assets from the public directory. 2011-04-15 19:57:52 +02:00
José Valim
d84b2f37d0 Fix tests. 2011-04-15 19:17:58 +02:00
José Valim
2fe70c1803 Booya, sprockets now works from Engines. 2011-04-15 18:43:22 +02:00
José Valim
8e5ff7d0a7 Add some very simple docs. 2011-04-15 18:43:21 +02:00
Emilio Tagua
434d75705f Fix console to accept [environment] [options] as specified in docs. 2011-04-14 23:05:08 -03:00
Sebastian Martinez
ba8a71588d Added more detailed use of the +list+ command on debugging guide 2011-04-14 21:26:20 -03:00
Sebastian Martinez
bbfc6cda82 Remove extra whitespaces from guides 2011-04-14 20:37:12 -03:00
David Heinemeier Hansson
3d44e45758 Use JS comments, please 2011-04-15 01:33:03 +02:00
Sebastian Martinez
5be72684f6 Update guide mentioning that +in?+ may raise an +ArgumentError+ exception 2011-04-14 13:45:00 -03:00
Prem Sichanugrist
89884c194a Update scaffold controller to generate scss file if Sass is available 2011-04-15 00:32:27 +08:00
Sebastian Martinez
28bf4c67ca Move [#ticket_number state:commited] to the end of the commit message 2011-04-14 10:59:48 -03:00
Sebastian Martinez
fb6fa1e425 change to use the Sass file extension .scss
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-04-14 10:14:57 -03:00
Sebastian Martinez
1bcc7055d8 Remove extra whitespace 2011-04-14 10:05:08 -03:00
Sebastian Martinez
9aff7e0898 Update guides with controller generator producing asset stubs 2011-04-14 10:04:10 -03:00
Sebastian Martinez
02883a1090 Update Contributing to the Rails Code guide for automatically change the status of LH tickets 2011-04-14 09:36:22 -03:00
David Heinemeier Hansson
6c91b699bf The controller and resource generators will now automatically produce asset stubs (this can be turned off with --skip-assets). These stubs will use Coffee and Sass, if those libraries are available. [DHH] 2011-04-14 12:23:21 +02:00
David Heinemeier Hansson
90246acb6d Bring back tmp/cache for the default local cache to work 2011-04-14 10:57:14 +02:00
Sebastian Martinez
beed866e43 Fix patch file name to make it consistent with the rest of the guide 2011-04-13 23:38:05 -03:00
Matt Duncan
2f24265237 Making colon usage consistent 2011-04-13 20:58:26 -04:00
Matt Duncan
974a6aa176 Remove trailing whitespace 2011-04-13 20:49:14 -04:00
Matt Duncan
e56b19bbed Aligning table cells 2011-04-13 20:32:36 -04:00
Matt Duncan
1447ff5654 Making identifiers consistent in example 2011-04-13 20:17:22 -04:00
Sebastian Martinez
f8ecb46e82 Documented +ActiveSupport::Notifications+ module. 2011-04-13 19:54:31 -03:00
David Heinemeier Hansson
443af58995 Its assets.enabled, not assets.enable 2011-04-14 00:45:25 +02:00
Matt Duncan
04a75e0289 Moving note out of prologue to match other guides and so it'll display correctly 2011-04-13 17:19:47 -04:00
David Heinemeier Hansson
bd3b2241a4 Cleanup the Gemfile and compute whats needed depending on whether we are on 1.8 or 1.9 2011-04-13 21:32:41 +02:00
Sebastian Martinez
21c03a2f48 Update guides with new scaffold.css path 2011-04-13 15:42:44 -03:00
David Heinemeier Hansson
48fb6b3380 Generate scaffold.css to app/assets/stylesheets (next step, SCSSify it if SCSS is available) 2011-04-13 18:21:52 +02:00
David Heinemeier Hansson
023d4f9fc1 Includes have to be in the first comment 2011-04-13 18:09:04 +02:00
David Heinemeier Hansson
e7280cb1bd Use driver_ujs now that we no longer have to depend on a shared name and insert all prototype dependencies if thats specified 2011-04-13 18:08:40 +02:00
David Heinemeier Hansson
17c1b0f0d3 Use driver_ujs now that we no longer have to depend on a shared name and insert all prototype dependencies if thats specified 2011-04-13 18:08:02 +02:00
David Heinemeier Hansson
26528efb54 Blah, assets cant be turned on from initializers either 2011-04-13 18:02:49 +02:00
David Heinemeier Hansson
4eb3ee4818 Cleanup comments 2011-04-13 17:54:11 +02:00
David Heinemeier Hansson
5b49867a75 Not needed 2011-04-13 17:51:46 +02:00
David Heinemeier Hansson
65ffcecc6a Require asset pipeline targets by default 2011-04-13 17:50:55 +02:00
David Heinemeier Hansson
7e3b374312 Require everything by default 2011-04-13 17:50:37 +02:00
David Heinemeier Hansson
f3f28ee493 Dont need to make application.js into coffee since it will mostly be a manifest file anyway 2011-04-13 17:37:48 +02:00
David Heinemeier Hansson
cf5599d9fa Move json requirement to user Gemfile -- still need to do better than this, though 2011-04-13 17:31:32 +02:00
David Heinemeier Hansson
1652c55651 Use Sass from git until the final gem is out 2011-04-13 17:30:08 +02:00
David Heinemeier Hansson
e3273f5cce Move the asset template engines to the user-generated Gemfile 2011-04-13 17:14:14 +02:00
Joshua Peek
23aa7dacb5 Generate CoffeeScript stub by default 2011-04-13 10:03:47 -05:00
Joshua Peek
9f09aeb827 Include CoffeeScript in Gemfile 2011-04-13 09:57:22 -05:00
Joshua Peek
9333ca74b3 Add default require directives for jquery 2011-04-13 09:47:29 -05:00
David Heinemeier Hansson
5e7e81ab1a Blah, identity_map has to be setup in application.rb to work 2011-04-13 16:42:59 +02:00
David Heinemeier Hansson
6fa7c3e036 Fix triplets 2011-04-13 16:26:22 +02:00
David Heinemeier Hansson
6d5e86eb6b Clean up the generator, switch to assets usage, use vendor/assets for the default scripts, and more 2011-04-13 16:19:46 +02:00
Sebastian Martinez
b2cb991251 Removed Object#among? from guides 2011-04-13 09:59:01 -03:00
David Heinemeier Hansson
101406d743 Move to app/assets in anticipation of image support being added as well. Also add vendor/assets to default load path 2011-04-13 14:31:09 +02:00
David Heinemeier Hansson
ab1f91394f Until the latest sprockets gem is released, we need new apps to reference it directly 2011-04-13 14:31:09 +02:00
Prem Sichanugrist
733bfa63f5 Remove #among? from Active Support
After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now.

It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`.
2011-04-13 20:25:28 +08:00
Xavier Noria
66e43aa1a8 updates railties CHANGELOG 2011-04-13 13:40:43 +02:00
Xavier Noria
06ae5769e1 removes some remaining .rjs occurrences 2011-04-13 13:24:33 +02:00
Xavier Noria
6cf1fc5cda removes mentions to RJS in the security guide 2011-04-13 13:24:32 +02:00
Xavier Noria
d8f23ca627 removes debug_rjs from ActionView::Base 2011-04-13 13:24:32 +02:00
Xavier Noria
5850f16935 removes the RJS template handler 2011-04-13 13:23:18 +02:00
Xavier Noria
eea66892c8 removes support for render :update 2011-04-13 13:23:17 +02:00
Xavier Noria
b878757c50 removes assert_select_rjs 2011-04-13 13:23:16 +02:00
Xavier Noria
096fa1b60f jQuery is the new default 2011-04-13 13:23:16 +02:00
Joshua Peek
a4518517f7 Index sprockets environment if perform caching is enabled 2011-04-12 22:12:27 -05:00
Joshua Peek
ed24595647 Merge branch 'master' into sprockets 2011-04-12 21:56:00 -05:00
Sebastian Martinez
dbf32eb6ca Changed Object#either? to Object#among? on guides 2011-04-12 18:58:41 -03:00
Xavier Noria
3366479a9a Merge branch 'master' of git://github.com/lifo/docrails 2011-04-12 22:45:33 +02:00
4e873ffcda Corrected dbconsole usage message. 2011-04-12 00:59:55 -07:00
Sebastian Martinez
40d156955c Update guides reflecting that scaffold_controller generator generates now code for JSON response instead of XML 2011-04-11 22:43:27 -03:00
Sebastian Martinez
7a1189a2c7 Updated AS guide with new Object#in? and Object#either? methods 2011-04-11 20:09:22 -03:00
Xavier Noria
3f283c2dd5 Revert "Edited railties/guides/source/active_support_core_extensions.textile via GitHub"
Reason: The original sentence is correct. Please note the guide
covers the stable version of Active Support.

This reverts commit 5265650d51713a883e6cacde8f6faf52708abc1b.
2011-04-12 00:37:02 +02:00
David Heinemeier Hansson
d1575ae1b9 Change Object#either? to Object#among? -- thanks to @jamesarosen for the suggestion! 2011-04-12 00:23:07 +02:00
Oge Nnadi
5265650d51 Edited railties/guides/source/active_support_core_extensions.textile via GitHub 2011-04-11 14:26:23 -07:00
David Heinemeier Hansson
b93199b547 Keep the same API semantics for update/delete as we had for XML (just return 200 OK, no body) 2011-04-11 15:50:05 +02:00
David Heinemeier Hansson
1d8bf4f4f9 Cant use inclusion in commands/application.rb as the frameworks havent all been required yet 2011-04-11 15:25:39 +02:00
Prem Sichanugrist
a9f3c9da01 Using Object#in? and Object#either? in various places
There're a lot of places in Rails source code which make a lot of sense to switching to Object#in? or Object#either? instead of using [].include?.
2011-04-11 03:17:09 +08:00
Prem Sichanugrist
22a3416298 Add --old-style-hash option to force creating old style hash on Ruby 1.9
That means if you don't like the new syntax, you can pass --old-style-hash to force Rails to generate code with hash rockets.
2011-04-10 16:47:52 +08:00
Prem Sichanugrist
74960c3976 Rails will now generate Ruby 1.9 style hash when running app generator on Ruby 1.9.x
The new hash syntax of Ruby 1.9 looks more superior, so we decide to switch to it in the places that appropriate.
2011-04-10 16:47:51 +08:00
Prem Sichanugrist
63cd92f9f3 Rails will now generate Ruby 1.9 style hash when running scaffold_controller generator on Ruby 1.9.x
The new hash syntax of Ruby 1.9 looks more superior, so we decide to switch to it in the places that appropriate.

This patch has been requested by DHH.
2011-04-10 16:47:50 +08:00
Prem Sichanugrist
c0efc4009a Make scaffold_controller generator generate code for JSON response instead of XML
It seems like a lot of people are using JSON in their API more than XML nowadays, so Rails should follow that convention by providing the JSON format block in scaffold_controller by default.

This patch has been requested by DHH
2011-04-10 16:47:49 +08:00
Aaron Patterson
bd79172e43 make turn a soft dependency. generate a Gemfile that contains turn and require turn if it is available 2011-04-08 09:40:33 -07:00
Vijay Dev
e836fc1bd2 fix example query 2011-04-06 15:14:47 +05:30
Josh Kalderimis
e9020b4b5d added find_zone and find_zone! to AS timezones and changed the AS Railtie to use find_zone! as well as adding Railtie tests
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-04-05 17:12:09 -03:00
Josh Kalderimis
284ca810c1 remove AM delegating register_observer and register_interceptor to Mail and instead implement smarter versions allowing for string class names, also added proper Railtie support with tests.
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-04-04 10:49:09 +02:00
Vijay Dev
4ac719686c Merge branch 'master' of github.com:lifo/docrails 2011-04-04 02:43:12 +05:30
Xavier Noria
3e24e9ebc2 Merge branch 'master' of git://github.com/lifo/docrails 2011-04-03 22:22:03 +02:00
orta
4c323bc25a added .'s to headings in the initialization textile page 2011-04-03 15:19:32 +02:00
Akira Matsuda
9bf5cddd28 s/ERb/ERB/g (part II) 2011-04-03 16:59:37 +09:00
Akira Matsuda
bd3cdeea35 s/ERb/ERB/g
The author of ERB sais, his eRuby implementation was originally named "ERb/ERbLight" and then renamed to "ERB" when started bundled as a Ruby standard lib.
http://www2a.biglobe.ne.jp/~seki/ruby/erb.html
2011-04-03 12:47:51 +09:00
Gonçalo Silva
5b2b513742 Merge branch 'master' of https://github.com/rails/rails into performance_test 2011-04-03 02:02:35 +01:00
Gonçalo Silva
677ce63d92 profiling enabled under JRuby. Added documentation for workaround described in JRUBY-5650. 2011-04-03 02:02:03 +01:00
Santiago Pastorino
99da42c299 Gem::Specification#has_rdoc= is deprecated since rubygems 1.7.0 2011-04-02 00:35:33 -03:00
David Heinemeier Hansson
0eb6e5e270 Moved Turn activation/dependency to railties 2011-03-31 16:20:59 -07:00
burningTyger
63e4e218c5 fix typo 2011-04-01 00:12:58 +02:00
David Heinemeier Hansson
caf0a72c85 Direct logging of Active Record to STDOUT so it's shown inline with the results in the console [DHH] 2011-03-31 14:33:24 -07:00