Commit Graph

1002 Commits

Author SHA1 Message Date
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
José Valim
83e35b9c08 Allow ignore_accept_header through configuration option. 2011-05-02 23:39:42 +02: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
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
David Heinemeier Hansson
c57320d769 Prem fixes 1.9 engine test issue 2011-04-26 12:46:28 -06: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
e38b4436a5 Add Engine#helpers method which loads all the engine's helpers 2011-04-25 13:44:27 +02:00
José Valim
2bc48561d5 Fix tests. 2011-04-25 11:14:39 +02:00
Prem Sichanugrist
a1c31eca47 Add app/assets/images directory to plugin new generator 2011-04-25 15:30:58 +08: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
Arun Agrawal
b335533e16 jdbcsqlite3 support added into template. #jruby 2011-04-23 19:03:24 +05:30
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
José Valim
013d9016ca Use .erb in the test. 2011-04-22 23:25:52 +02: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
Sebastian Martinez
aa19a7d085 Fix 'FIXME' annotation typo 2011-04-19 23:21:40 -03: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
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
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
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
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
Prem Sichanugrist
89884c194a Update scaffold controller to generate scss file if Sass is available 2011-04-15 00:32:27 +08: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
Xavier Noria
096fa1b60f jQuery is the new default 2011-04-13 13:23:16 +02: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
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
Rolf Timmermans
0a28073acc Engines that use isolate_namespace with nested modules should set correct module prefix for their routes. 2011-03-28 15:58:28 +08:00
Xavier Noria
84aab7aa53 s/with/when/ 2011-03-27 22:31:42 +02:00
Prem Sichanugrist
2c0c4d754e Add config.force_ssl configuration which will load Rack::SSL middleware if set to true
This will allow user to be able to force all requests to be under HTTPS protocol.

This commit was a request from DHH. Special thanks to Josh Peek as well for making `Rack::SSL`.
2011-03-27 13:27:23 -07:00
Aditya Sanghi
3a7c7dc73d Fix test for prepend giving a false positive. [#5716 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-03-23 18:06:30 +01:00
Jack Dempsey
88d8ca2ef9 use parens and silence ambiguous args warnings 2011-03-14 02:54:44 +08:00
José Valim
f00a398456 log and readme should respect --quiet 2011-03-04 13:05:27 +01:00
Prem Sichanugrist
515ea955b6 Always use ActionDispatch::ShowExceptions middleware [#6462 state:resolved]
This will make sure the application will raise `ActionController::RoutingError` in case "X-Cascade: pass" header was set, usually when there's no route match.
2011-02-25 10:03:53 -08:00
Prem Sichanugrist
439a74520d Make sure that we set env["action_dispatch.show_exceptions"]
This has been used by `show_exception` middleware even the setting wasn't get passed to `env` hash.
2011-02-25 10:03:40 -08:00
Vinicius Baggio
e8a578224f Removing redundant File.expand_path from generators test
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-02-23 19:42:51 +01:00
Emilio Tagua
18439e28e0 We really don't care about IM middleware order, the important is that it gets included. 2011-02-18 14:57:29 -08:00
Emilio Tagua
0b702ba3de Merge remote branch 'rails/master' into identity_map
Conflicts:
	activerecord/lib/active_record/associations/association.rb
	activerecord/lib/active_record/fixtures.rb
2011-02-18 15:29:33 -03:00
Timothy N. Tsvetkov
c6fac7b449 Fixed issue #6363, avoid to pluralized already pluralized names and singularize a single in generators, for example stadia is a valid plural for stadium. But calling pluralize for stadia will return stadias which sematically is not corrent in this case
[#6363 state:committed]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-02-16 15:09:06 -02:00
Emilio Tagua
8ee0b44148 Merge remote branch 'rails/master' into identity_map
Conflicts:
	activerecord/examples/performance.rb
	activerecord/lib/active_record/association_preload.rb
	activerecord/lib/active_record/associations.rb
	activerecord/lib/active_record/associations/association_proxy.rb
	activerecord/lib/active_record/autosave_association.rb
	activerecord/lib/active_record/base.rb
	activerecord/lib/active_record/nested_attributes.rb
	activerecord/test/cases/relations_test.rb
2011-02-15 12:01:04 -03:00
Eric Allam
d729e5f97e Failing test for #6388 2011-02-09 12:19:08 +01:00