Commit Graph

2713 Commits

Author SHA1 Message Date
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
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
06ae5769e1 removes some remaining .rjs occurrences 2011-04-13 13:24:33 +02:00
Xavier Noria
d8f23ca627 removes debug_rjs from ActionView::Base 2011-04-13 13:24:32 +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
David Heinemeier Hansson
d1575ae1b9 Change Object#either? to Object#among? -- thanks to @jamesarosen for the suggestion! 2011-04-12 00:23:07 +02: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
Xavier Noria
3e24e9ebc2 Merge branch 'master' of git://github.com/lifo/docrails 2011-04-03 22:22:03 +02: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
David Heinemeier Hansson
0eb6e5e270 Moved Turn activation/dependency to railties 2011-03-31 16:20:59 -07: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
Joshua Peek
d7b521db12 Fix assets prefix joining 2011-03-30 22:17:43 -05:00
Joshua Peek
bcde6cdf27 Fix assets prefix joining 2011-03-30 22:12:00 -05:00
Joshua Peek
203b151af7 Fix config.assets.precompile option 2011-03-30 22:00:16 -05:00
Joshua Peek
28fee29e38 Unify sprockets config options 2011-03-30 21:56:15 -05:00
Joshua Peek
56a5da89db Merge branch 'master' into sprockets
Conflicts:
	railties/lib/rails/application/configuration.rb
2011-03-30 21:04:33 -05:00
Joshua Peek
5df076ad09 Merge branch 'master' into sprockets 2011-03-30 20:56:05 -05:00
Joshua Peek
25c0b569f5 Precompile configured assets 2011-03-29 22:11:47 -05:00
Joshua Peek
651d371a24 Rename option to config.asset_pipeline 2011-03-29 21:23:05 -05:00
Joshua Peek
612454e00e Move sprockets initializers back to application 2011-03-29 21:16:44 -05:00
Joshua Peek
db3e310d6b Change back to /assets prefix 2011-03-29 18:05:23 -05:00