railties 3.2.1 → 3.2.2.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -358,6 +358,7 @@ Here are a few things you should know to make efficient use of Active Record ass
358
358
  * Avoiding name collisions
359
359
  * Updating the schema
360
360
  * Controlling association scope
361
+ * Bi-directional associations
361
362
 
362
363
  h4. Controlling Caching
363
364
 
@@ -501,6 +502,59 @@ module MyApplication
501
502
  end
502
503
  </ruby>
503
504
 
505
+ h4. Bi-directional Associations
506
+
507
+ It's normal for associations to work in two directions, requiring declaration on two different models:
508
+
509
+ <ruby>
510
+ class Customer < ActiveRecord::Base
511
+ has_many :orders
512
+ end
513
+
514
+ class Order < ActiveRecord::Base
515
+ belongs_to :customer
516
+ end
517
+ </ruby>
518
+
519
+ By default, Active Record doesn't know about the connection between these associations. This can lead to two copies of an object getting out of sync:
520
+
521
+ <ruby>
522
+ c = Customer.first
523
+ o = c.orders.first
524
+ c.first_name == o.customer.first_name # => true
525
+ c.first_name = 'Manny'
526
+ c.first_name == o.customer.first_name # => false
527
+ </ruby>
528
+
529
+ This happens because c and o.customer are two different in-memory representations of the same data, and neither one is automatically refreshed from changes to the other. Active Record provides the +:inverse_of+ option so that you can inform it of these relations:
530
+
531
+ <ruby>
532
+ class Customer < ActiveRecord::Base
533
+ has_many :orders, :inverse_of => :customer
534
+ end
535
+
536
+ class Order < ActiveRecord::Base
537
+ belongs_to :customer, :inverse_of => :orders
538
+ end
539
+ </ruby>
540
+
541
+ With these changes, Active Record will only load one copy of the customer object, preventing inconsistencies and making your application more efficient:
542
+
543
+ <ruby>
544
+ c = Customer.first
545
+ o = c.orders.first
546
+ c.first_name == o.customer.first_name # => true
547
+ c.first_name = 'Manny'
548
+ c.first_name == o.customer.first_name # => true
549
+ </ruby>
550
+
551
+ There are a few limitations to +inverse_of+ support:
552
+
553
+ * They do not work with <tt>:through</tt> associations.
554
+ * They do not work with <tt>:polymorphic</tt> associations.
555
+ * They do not work with <tt>:as</tt> associations.
556
+ * For +belongs_to+ associations, +has_many+ inverse associations are ignored.
557
+
504
558
  h3. Detailed Association Reference
505
559
 
506
560
  The following sections give the details of each type of association, including the methods that they add and the options that you can use when declaring an association.
@@ -594,6 +648,7 @@ The +belongs_to+ association supports these options:
594
648
  * +:dependent+
595
649
  * +:foreign_key+
596
650
  * +:include+
651
+ * +:inverse_of+
597
652
  * +:polymorphic+
598
653
  * +:readonly+
599
654
  * +:select+
@@ -720,6 +775,20 @@ end
720
775
 
721
776
  NOTE: There's no need to use +:include+ for immediate associations - that is, if you have +Order belongs_to :customer+, then the customer is eager-loaded automatically when it's needed.
722
777
 
778
+ h6(#belongs_to-inverse_of). +:inverse_of+
779
+
780
+ The +:inverse_of+ option specifies the name of the +has_many+ or +has_one+ association that is the inverse of this association. Does not work in combination with the +:polymorphic+ options.
781
+
782
+ <ruby>
783
+ class Customer < ActiveRecord::Base
784
+ has_many :orders, :inverse_of => :customer
785
+ end
786
+
787
+ class Order < ActiveRecord::Base
788
+ belongs_to :customer, :inverse_of => :orders
789
+ end
790
+ </ruby>
791
+
723
792
  h6(#belongs_to-polymorphic). +:polymorphic+
724
793
 
725
794
  Passing +true+ to the +:polymorphic+ option indicates that this is a polymorphic association. Polymorphic associations were discussed in detail <a href="#polymorphic-associations">earlier in this guide</a>.
@@ -859,6 +928,7 @@ The +has_one+ association supports these options:
859
928
  * +:dependent+
860
929
  * +:foreign_key+
861
930
  * +:include+
931
+ * +:inverse_of+
862
932
  * +:order+
863
933
  * +:primary_key+
864
934
  * +:readonly+
@@ -948,6 +1018,20 @@ class Representative < ActiveRecord::Base
948
1018
  end
949
1019
  </ruby>
950
1020
 
1021
+ h6(#has_one-inverse_of). +:inverse_of+
1022
+
1023
+ The +:inverse_of+ option specifies the name of the +belongs_to+ association that is the inverse of this association. Does not work in combination with the +:through+ or +:as+ options.
1024
+
1025
+ <ruby>
1026
+ class Supplier < ActiveRecord::Base
1027
+ has_one :account, :inverse_of => :supplier
1028
+ end
1029
+
1030
+ class Account < ActiveRecord::Base
1031
+ belongs_to :supplier, :inverse_of => :account
1032
+ end
1033
+ </ruby>
1034
+
951
1035
  h6(#has_one-order). +:order+
952
1036
 
953
1037
  The +:order+ option dictates the order in which associated objects will be received (in the syntax used by an SQL +ORDER BY+ clause). Because a +has_one+ association will only retrieve a single associated object, this option should not be needed.
@@ -1177,6 +1261,7 @@ The +has_many+ association supports these options:
1177
1261
  * +:foreign_key+
1178
1262
  * +:group+
1179
1263
  * +:include+
1264
+ * +:inverse_of+
1180
1265
  * +:limit+
1181
1266
  * +:offset+
1182
1267
  * +:order+
@@ -1316,6 +1401,20 @@ class LineItem < ActiveRecord::Base
1316
1401
  end
1317
1402
  </ruby>
1318
1403
 
1404
+ h6(#has_many-inverse_of). +:inverse_of+
1405
+
1406
+ The +:inverse_of+ option specifies the name of the +belongs_to+ association that is the inverse of this association. Does not work in combination with the +:through+ or +:as+ options.
1407
+
1408
+ <ruby>
1409
+ class Customer < ActiveRecord::Base
1410
+ has_many :orders, :inverse_of => :customer
1411
+ end
1412
+
1413
+ class Order < ActiveRecord::Base
1414
+ belongs_to :customer, :inverse_of => :orders
1415
+ end
1416
+ </ruby>
1417
+
1319
1418
  h6(#has_many-limit). +:limit+
1320
1419
 
1321
1420
  The +:limit+ option lets you restrict the total number of objects that will be fetched through an association.
@@ -1188,7 +1188,7 @@ You can also specify a second partial to be rendered between instances of the ma
1188
1188
  h5. Spacer Templates
1189
1189
 
1190
1190
  <erb>
1191
- <%= render @products, :spacer_template => "product_ruler" %>
1191
+ <%= render :partial => @products, :spacer_template => "product_ruler" %>
1192
1192
  </erb>
1193
1193
 
1194
1194
  Rails will render the +_product_ruler+ partial (with no data passed in to it) between each pair of +_product+ partials.
@@ -30,7 +30,7 @@ module Rails
30
30
 
31
31
  f = File.open path, 'a'
32
32
  f.binmode
33
- f.sync = !Rails.env.production? # make sure every write flushes
33
+ f.sync = true # make sure every write flushes
34
34
 
35
35
  logger = ActiveSupport::TaggedLogging.new(
36
36
  ActiveSupport::BufferedLogger.new(f)
@@ -143,7 +143,7 @@ module Rails
143
143
  GEMFILE
144
144
  elsif options.edge?
145
145
  <<-GEMFILE.strip_heredoc
146
- gem 'rails', :git => 'git://github.com/rails/rails.git'
146
+ gem 'rails', :git => 'git://github.com/rails/rails.git', :branch => '3-2-stable'
147
147
  gem 'journey', :git => 'git://github.com/rails/journey.git'
148
148
  gem 'arel', :git => 'git://github.com/rails/arel.git'
149
149
  GEMFILE
@@ -200,7 +200,7 @@ module Rails
200
200
  # Gems used only for assets and not required
201
201
  # in production environments by default.
202
202
  group :assets do
203
- gem 'sass-rails', :git => 'git://github.com/rails/sass-rails.git', :branch => '3-2-stable'
203
+ gem 'sass-rails', :git => 'git://github.com/rails/sass-rails.git', :branch => '3-2-stable'
204
204
  gem 'coffee-rails', :git => 'git://github.com/rails/coffee-rails.git', :branch => '3-2-stable'
205
205
 
206
206
  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
@@ -16,7 +16,7 @@ source 'https://rubygems.org'
16
16
  # To use Jbuilder templates for JSON
17
17
  # gem 'jbuilder'
18
18
 
19
- # Use unicorn as the web server
19
+ # Use unicorn as the app server
20
20
  # gem 'unicorn'
21
21
 
22
22
  # Deploy with Capistrano
@@ -1,36 +1,8 @@
1
1
  module Rails
2
- # Don't abort when tests fail; move on the next test task.
3
2
  # Silence the default description to cut down on `rake -T` noise.
4
3
  class SubTestTask < Rake::TestTask
5
- # Create the tasks defined by this task lib.
6
- def define
7
- lib_path = @libs.join(File::PATH_SEPARATOR)
8
- task @name do
9
- run_code = ''
10
- RakeFileUtils.verbose(@verbose) do
11
- run_code =
12
- case @loader
13
- when :direct
14
- "-e 'ARGV.each{|f| load f}'"
15
- when :testrb
16
- "-S testrb #{fix}"
17
- when :rake
18
- rake_loader
19
- end
20
- @ruby_opts.unshift( "-I\"#{lib_path}\"" )
21
- @ruby_opts.unshift( "-w" ) if @warning
22
-
23
- begin
24
- ruby @ruby_opts.join(" ") +
25
- " \"#{run_code}\" " +
26
- file_list.collect { |fn| "\"#{fn}\"" }.join(' ') +
27
- " #{option_list}"
28
- rescue => error
29
- warn "Error running #{name}: #{error.inspect}"
30
- end
31
- end
32
- end
33
- self
4
+ def desc(string)
5
+ # Ignore the description.
34
6
  end
35
7
  end
36
8
  end
@@ -55,7 +55,21 @@ namespace :test do
55
55
  # Placeholder task for other Railtie and plugins to enhance. See Active Record for an example.
56
56
  end
57
57
 
58
- task :run => %w(test:units test:functionals test:integration)
58
+ task :run do
59
+ errors = %w(test:units test:functionals test:integration).collect do |task|
60
+ begin
61
+ Rake::Task[task].invoke
62
+ nil
63
+ rescue => e
64
+ { :task => task, :exception => e }
65
+ end
66
+ end.compact
67
+
68
+ if errors.any?
69
+ puts errors.map { |e| "Errors running #{e[:task]}! #{e[:exception].inspect}" }.join("\n")
70
+ abort
71
+ end
72
+ end
59
73
 
60
74
  Rake::TestTask.new(:recent => "test:prepare") do |t|
61
75
  since = TEST_CHANGES_SINCE
@@ -2,8 +2,8 @@ module Rails
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 2
5
- TINY = 1
6
- PRE = nil
5
+ TINY = 2
6
+ PRE = "rc1"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9
9
  end
metadata CHANGED
@@ -1,13 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railties
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
5
- prerelease:
4
+ hash: 15424071
5
+ prerelease: 6
6
6
  segments:
7
7
  - 3
8
8
  - 2
9
+ - 2
10
+ - rc
9
11
  - 1
10
- version: 3.2.1
12
+ version: 3.2.2.rc1
11
13
  platform: ruby
12
14
  authors:
13
15
  - David Heinemeier Hansson
@@ -15,8 +17,7 @@ autorequire:
15
17
  bindir: bin
16
18
  cert_chain: []
17
19
 
18
- date: 2012-01-26 00:00:00 -08:00
19
- default_executable:
20
+ date: 2012-02-22 00:00:00 Z
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
23
  name: rake
@@ -89,12 +90,14 @@ dependencies:
89
90
  requirements:
90
91
  - - "="
91
92
  - !ruby/object:Gem::Version
92
- hash: 13
93
+ hash: 15424071
93
94
  segments:
94
95
  - 3
95
96
  - 2
97
+ - 2
98
+ - rc
96
99
  - 1
97
- version: 3.2.1
100
+ version: 3.2.2.rc1
98
101
  type: :runtime
99
102
  version_requirements: *id005
100
103
  - !ruby/object:Gem::Dependency
@@ -105,12 +108,14 @@ dependencies:
105
108
  requirements:
106
109
  - - "="
107
110
  - !ruby/object:Gem::Version
108
- hash: 13
111
+ hash: 15424071
109
112
  segments:
110
113
  - 3
111
114
  - 2
115
+ - 2
116
+ - rc
112
117
  - 1
113
- version: 3.2.1
118
+ version: 3.2.2.rc1
114
119
  type: :runtime
115
120
  version_requirements: *id006
116
121
  description: "Rails internals: application bootup, plugins, generators, and rake tasks."
@@ -125,496 +130,495 @@ files:
125
130
  - CHANGELOG.md
126
131
  - README.rdoc
127
132
  - bin/rails
128
- - guides/assets/stylesheets/syntaxhighlighter/shThemeRDark.css
129
- - guides/assets/stylesheets/syntaxhighlighter/shThemeMidnight.css
130
- - guides/assets/stylesheets/syntaxhighlighter/shCoreRDark.css
131
- - guides/assets/stylesheets/syntaxhighlighter/shCoreEclipse.css
132
- - guides/assets/stylesheets/syntaxhighlighter/shThemeDefault.css
133
- - guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css
134
- - guides/assets/stylesheets/syntaxhighlighter/shCore.css
135
- - guides/assets/stylesheets/syntaxhighlighter/shCoreDefault.css
136
- - guides/assets/stylesheets/syntaxhighlighter/shCoreEmacs.css
137
- - guides/assets/stylesheets/syntaxhighlighter/shThemeMDUltra.css
138
- - guides/assets/stylesheets/syntaxhighlighter/shThemeEmacs.css
139
- - guides/assets/stylesheets/syntaxhighlighter/shThemeDjango.css
140
- - guides/assets/stylesheets/syntaxhighlighter/shThemeEclipse.css
141
- - guides/assets/stylesheets/syntaxhighlighter/shCoreMidnight.css
142
- - guides/assets/stylesheets/syntaxhighlighter/shCoreMDUltra.css
143
- - guides/assets/stylesheets/syntaxhighlighter/shCoreDjango.css
144
- - guides/assets/stylesheets/syntaxhighlighter/shThemeFadeToGrey.css
145
- - guides/assets/stylesheets/syntaxhighlighter/shCoreFadeToGrey.css
146
- - guides/assets/stylesheets/reset.css
147
- - guides/assets/stylesheets/main.css
148
- - guides/assets/stylesheets/print.css
149
- - guides/assets/stylesheets/fixes.css
150
- - guides/assets/stylesheets/style.css
151
- - guides/assets/stylesheets/kindle.css
152
- - guides/assets/images/grey_bullet.gif
153
- - guides/assets/images/vijaydev.jpg
154
- - guides/assets/images/error_messages.png
133
+ - guides/assets/images/belongs_to.png
134
+ - guides/assets/images/book_icon.gif
135
+ - guides/assets/images/bullet.gif
136
+ - guides/assets/images/challenge.png
137
+ - guides/assets/images/chapters_icon.gif
138
+ - guides/assets/images/check_bullet.gif
139
+ - guides/assets/images/credits_pic_blank.gif
140
+ - guides/assets/images/csrf.png
155
141
  - guides/assets/images/customized_error_messages.png
142
+ - guides/assets/images/edge_badge.png
143
+ - guides/assets/images/error_messages.png
144
+ - guides/assets/images/feature_tile.gif
145
+ - guides/assets/images/footer_tile.gif
146
+ - guides/assets/images/fxn.png
147
+ - guides/assets/images/grey_bullet.gif
156
148
  - guides/assets/images/habtm.png
157
- - guides/assets/images/polymorphic.png
158
- - guides/assets/images/icons/README
159
- - guides/assets/images/icons/prev.png
160
- - guides/assets/images/icons/tip.png
161
- - guides/assets/images/icons/note.png
162
- - guides/assets/images/icons/callouts/15.png
163
- - guides/assets/images/icons/callouts/5.png
164
- - guides/assets/images/icons/callouts/2.png
149
+ - guides/assets/images/has_many.png
150
+ - guides/assets/images/has_many_through.png
151
+ - guides/assets/images/has_one.png
152
+ - guides/assets/images/has_one_through.png
153
+ - guides/assets/images/header_backdrop.png
154
+ - guides/assets/images/header_tile.gif
155
+ - guides/assets/images/i18n/demo_html_safe.png
156
+ - guides/assets/images/i18n/demo_localized_pirate.png
157
+ - guides/assets/images/i18n/demo_translated_en.png
158
+ - guides/assets/images/i18n/demo_translated_pirate.png
159
+ - guides/assets/images/i18n/demo_translation_missing.png
160
+ - guides/assets/images/i18n/demo_untranslated.png
161
+ - guides/assets/images/icons/callouts/1.png
162
+ - guides/assets/images/icons/callouts/10.png
165
163
  - guides/assets/images/icons/callouts/11.png
164
+ - guides/assets/images/icons/callouts/12.png
165
+ - guides/assets/images/icons/callouts/13.png
166
166
  - guides/assets/images/icons/callouts/14.png
167
+ - guides/assets/images/icons/callouts/15.png
168
+ - guides/assets/images/icons/callouts/2.png
167
169
  - guides/assets/images/icons/callouts/3.png
168
- - guides/assets/images/icons/callouts/1.png
170
+ - guides/assets/images/icons/callouts/4.png
171
+ - guides/assets/images/icons/callouts/5.png
169
172
  - guides/assets/images/icons/callouts/6.png
170
- - guides/assets/images/icons/callouts/10.png
171
- - guides/assets/images/icons/callouts/13.png
172
173
  - guides/assets/images/icons/callouts/7.png
173
- - guides/assets/images/icons/callouts/12.png
174
174
  - guides/assets/images/icons/callouts/8.png
175
- - guides/assets/images/icons/callouts/4.png
176
175
  - guides/assets/images/icons/callouts/9.png
177
- - guides/assets/images/icons/up.png
178
- - guides/assets/images/icons/warning.png
179
- - guides/assets/images/icons/home.png
180
- - guides/assets/images/icons/next.png
181
176
  - guides/assets/images/icons/caution.png
182
177
  - guides/assets/images/icons/example.png
178
+ - guides/assets/images/icons/home.png
183
179
  - guides/assets/images/icons/important.png
184
- - guides/assets/images/has_one_through.png
185
- - guides/assets/images/rails_welcome.png
186
- - guides/assets/images/footer_tile.gif
187
- - guides/assets/images/bullet.gif
188
- - guides/assets/images/chapters_icon.gif
189
- - guides/assets/images/csrf.png
190
- - guides/assets/images/tab_note.gif
191
- - guides/assets/images/nav_arrow.gif
192
- - guides/assets/images/has_many_through.png
193
- - guides/assets/images/feature_tile.gif
194
- - guides/assets/images/tab_yellow.gif
195
- - guides/assets/images/session_fixation.png
196
- - guides/assets/images/has_many.png
180
+ - guides/assets/images/icons/next.png
181
+ - guides/assets/images/icons/note.png
182
+ - guides/assets/images/icons/prev.png
183
+ - guides/assets/images/icons/README
184
+ - guides/assets/images/icons/tip.png
185
+ - guides/assets/images/icons/up.png
186
+ - guides/assets/images/icons/warning.png
197
187
  - guides/assets/images/jaimeiniesta.jpg
198
- - guides/assets/images/tab_info.gif
199
- - guides/assets/images/challenge.png
200
- - guides/assets/images/credits_pic_blank.gif
188
+ - guides/assets/images/nav_arrow.gif
189
+ - guides/assets/images/polymorphic.png
201
190
  - guides/assets/images/posts_index.png
202
- - guides/assets/images/check_bullet.gif
203
- - guides/assets/images/validation_error_messages.png
204
- - guides/assets/images/edge_badge.png
205
- - guides/assets/images/fxn.png
206
- - guides/assets/images/rails_logo_remix.gif
207
- - guides/assets/images/belongs_to.png
208
- - guides/assets/images/tab_yellow.png
209
- - guides/assets/images/header_tile.gif
191
+ - guides/assets/images/radar.png
210
192
  - guides/assets/images/rails_guides_kindle_cover.jpg
211
- - guides/assets/images/i18n/demo_untranslated.png
212
- - guides/assets/images/i18n/demo_translation_missing.png
213
- - guides/assets/images/i18n/demo_localized_pirate.png
214
- - guides/assets/images/i18n/demo_translated_en.png
215
- - guides/assets/images/i18n/demo_html_safe.png
216
- - guides/assets/images/i18n/demo_translated_pirate.png
217
- - guides/assets/images/has_one.png
218
- - guides/assets/images/header_backdrop.png
219
193
  - guides/assets/images/rails_guides_logo.gif
220
- - guides/assets/images/book_icon.gif
194
+ - guides/assets/images/rails_logo_remix.gif
195
+ - guides/assets/images/rails_welcome.png
196
+ - guides/assets/images/session_fixation.png
221
197
  - guides/assets/images/tab_grey.gif
222
- - guides/assets/images/radar.png
198
+ - guides/assets/images/tab_info.gif
199
+ - guides/assets/images/tab_note.gif
223
200
  - guides/assets/images/tab_red.gif
224
- - guides/assets/javascripts/syntaxhighlighter/shBrushJavaFX.js
225
- - guides/assets/javascripts/syntaxhighlighter/shBrushCSharp.js
226
- - guides/assets/javascripts/syntaxhighlighter/shBrushDelphi.js
227
- - guides/assets/javascripts/syntaxhighlighter/shBrushSql.js
228
- - guides/assets/javascripts/syntaxhighlighter/shBrushRuby.js
201
+ - guides/assets/images/tab_yellow.gif
202
+ - guides/assets/images/tab_yellow.png
203
+ - guides/assets/images/validation_error_messages.png
204
+ - guides/assets/images/vijaydev.jpg
205
+ - guides/assets/javascripts/guides.js
206
+ - guides/assets/javascripts/syntaxhighlighter/shBrushAppleScript.js
207
+ - guides/assets/javascripts/syntaxhighlighter/shBrushAS3.js
229
208
  - guides/assets/javascripts/syntaxhighlighter/shBrushBash.js
209
+ - guides/assets/javascripts/syntaxhighlighter/shBrushColdFusion.js
210
+ - guides/assets/javascripts/syntaxhighlighter/shBrushCpp.js
211
+ - guides/assets/javascripts/syntaxhighlighter/shBrushCSharp.js
230
212
  - guides/assets/javascripts/syntaxhighlighter/shBrushCss.js
213
+ - guides/assets/javascripts/syntaxhighlighter/shBrushDelphi.js
214
+ - guides/assets/javascripts/syntaxhighlighter/shBrushDiff.js
215
+ - guides/assets/javascripts/syntaxhighlighter/shBrushErlang.js
216
+ - guides/assets/javascripts/syntaxhighlighter/shBrushGroovy.js
231
217
  - guides/assets/javascripts/syntaxhighlighter/shBrushJava.js
232
- - guides/assets/javascripts/syntaxhighlighter/shBrushAppleScript.js
218
+ - guides/assets/javascripts/syntaxhighlighter/shBrushJavaFX.js
233
219
  - guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js
234
- - guides/assets/javascripts/syntaxhighlighter/shBrushColdFusion.js
235
- - guides/assets/javascripts/syntaxhighlighter/shBrushXml.js
236
- - guides/assets/javascripts/syntaxhighlighter/shBrushGroovy.js
237
- - guides/assets/javascripts/syntaxhighlighter/shBrushAS3.js
238
- - guides/assets/javascripts/syntaxhighlighter/shBrushScala.js
239
- - guides/assets/javascripts/syntaxhighlighter/shBrushErlang.js
240
- - guides/assets/javascripts/syntaxhighlighter/shCore.js
241
220
  - guides/assets/javascripts/syntaxhighlighter/shBrushPerl.js
242
- - guides/assets/javascripts/syntaxhighlighter/shBrushVb.js
243
- - guides/assets/javascripts/syntaxhighlighter/shBrushPlain.js
244
221
  - guides/assets/javascripts/syntaxhighlighter/shBrushPhp.js
222
+ - guides/assets/javascripts/syntaxhighlighter/shBrushPlain.js
245
223
  - guides/assets/javascripts/syntaxhighlighter/shBrushPowerShell.js
246
- - guides/assets/javascripts/syntaxhighlighter/shBrushSass.js
247
- - guides/assets/javascripts/syntaxhighlighter/shBrushDiff.js
248
224
  - guides/assets/javascripts/syntaxhighlighter/shBrushPython.js
249
- - guides/assets/javascripts/syntaxhighlighter/shBrushCpp.js
250
- - guides/assets/javascripts/guides.js
251
- - guides/rails_guides/generator.rb
252
- - guides/rails_guides/indexer.rb
253
- - guides/rails_guides/textile_extensions.rb
254
- - guides/rails_guides/helpers.rb
255
- - guides/rails_guides/levenshtein.rb
256
- - guides/w3c_validator.rb
257
- - guides/source/action_view_overview.textile
258
- - guides/source/kindle/welcome.html.erb
259
- - guides/source/kindle/rails_guides.opf.erb
260
- - guides/source/kindle/KINDLE.md
261
- - guides/source/kindle/toc.ncx.erb
262
- - guides/source/kindle/layout.html.erb
263
- - guides/source/kindle/toc.html.erb
264
- - guides/source/kindle/copyright.html.erb
265
- - guides/source/active_resource_basics.textile
266
- - guides/source/index.html.erb
267
- - guides/source/i18n.textile
268
- - guides/source/getting_started.textile
269
- - guides/source/command_line.textile
270
- - guides/source/configuring.textile
271
- - guides/source/action_mailer_basics.textile
272
- - guides/source/layouts_and_rendering.textile
273
- - guides/source/2_3_release_notes.textile
274
- - guides/source/security.textile
275
- - guides/source/api_documentation_guidelines.textile
276
- - guides/source/initialization.textile
277
- - guides/source/form_helpers.textile
278
- - guides/source/nested_model_forms.textile
279
- - guides/source/_welcome.html.erb
280
- - guides/source/documents.yaml
281
- - guides/source/ajax_on_rails.textile
282
- - guides/source/active_model_basics.textile
283
- - guides/source/engines.textile
284
- - guides/source/action_controller_overview.textile
285
- - guides/source/rails_application_templates.textile
286
- - guides/source/plugins.textile
287
- - guides/source/3_1_release_notes.textile
288
- - guides/source/routing.textile
289
- - guides/source/generators.textile
290
- - guides/source/2_2_release_notes.textile
291
- - guides/source/association_basics.textile
292
- - guides/source/active_record_validations_callbacks.textile
293
- - guides/source/testing.textile
294
- - guides/source/asset_pipeline.textile
295
- - guides/source/_license.html.erb
296
- - guides/source/active_support_core_extensions.textile
297
- - guides/source/rails_on_rack.textile
298
- - guides/source/credits.html.erb
299
- - guides/source/3_2_release_notes.textile
300
- - guides/source/migrations.textile
301
- - guides/source/active_record_basics.textile
302
- - guides/source/layout.html.erb
303
- - guides/source/active_record_querying.textile
304
- - guides/source/3_0_release_notes.textile
305
- - guides/source/contributing_to_ruby_on_rails.textile
306
- - guides/source/performance_testing.textile
307
- - guides/source/ruby_on_rails_guides_guidelines.textile
308
- - guides/source/caching_with_rails.textile
309
- - guides/source/debugging_rails_applications.textile
310
- - guides/code/getting_started/db/seeds.rb
311
- - guides/code/getting_started/db/schema.rb
312
- - guides/code/getting_started/db/migrate/20110901012815_create_comments.rb
313
- - guides/code/getting_started/db/migrate/20110901012504_create_posts.rb
314
- - guides/code/getting_started/db/migrate/20110901013701_create_tags.rb
315
- - guides/code/getting_started/script/rails
316
- - guides/code/getting_started/doc/README_FOR_APP
317
- - guides/code/getting_started/test/performance/browsing_test.rb
318
- - guides/code/getting_started/test/test_helper.rb
319
- - guides/code/getting_started/test/unit/tag_test.rb
320
- - guides/code/getting_started/test/unit/comment_test.rb
321
- - guides/code/getting_started/test/unit/post_test.rb
322
- - guides/code/getting_started/test/unit/helpers/posts_helper_test.rb
323
- - guides/code/getting_started/test/unit/helpers/home_helper_test.rb
324
- - guides/code/getting_started/test/unit/helpers/comments_helper_test.rb
325
- - guides/code/getting_started/test/functional/comments_controller_test.rb
326
- - guides/code/getting_started/test/functional/posts_controller_test.rb
327
- - guides/code/getting_started/test/functional/home_controller_test.rb
328
- - guides/code/getting_started/test/fixtures/tags.yml
329
- - guides/code/getting_started/test/fixtures/comments.yml
330
- - guides/code/getting_started/test/fixtures/posts.yml
331
- - guides/code/getting_started/Rakefile
332
- - guides/code/getting_started/app/assets/stylesheets/posts.css.scss
333
- - guides/code/getting_started/app/assets/stylesheets/application.css
334
- - guides/code/getting_started/app/assets/stylesheets/home.css.scss
335
- - guides/code/getting_started/app/assets/stylesheets/comments.css.scss
336
- - guides/code/getting_started/app/assets/stylesheets/scaffolds.css.scss
337
- - guides/code/getting_started/app/assets/images/rails.png
338
- - guides/code/getting_started/app/assets/javascripts/posts.js.coffee
339
- - guides/code/getting_started/app/assets/javascripts/application.js
340
- - guides/code/getting_started/app/assets/javascripts/comments.js.coffee
225
+ - guides/assets/javascripts/syntaxhighlighter/shBrushRuby.js
226
+ - guides/assets/javascripts/syntaxhighlighter/shBrushSass.js
227
+ - guides/assets/javascripts/syntaxhighlighter/shBrushScala.js
228
+ - guides/assets/javascripts/syntaxhighlighter/shBrushSql.js
229
+ - guides/assets/javascripts/syntaxhighlighter/shBrushVb.js
230
+ - guides/assets/javascripts/syntaxhighlighter/shBrushXml.js
231
+ - guides/assets/javascripts/syntaxhighlighter/shCore.js
232
+ - guides/assets/stylesheets/fixes.css
233
+ - guides/assets/stylesheets/kindle.css
234
+ - guides/assets/stylesheets/main.css
235
+ - guides/assets/stylesheets/print.css
236
+ - guides/assets/stylesheets/reset.css
237
+ - guides/assets/stylesheets/style.css
238
+ - guides/assets/stylesheets/syntaxhighlighter/shCore.css
239
+ - guides/assets/stylesheets/syntaxhighlighter/shCoreDefault.css
240
+ - guides/assets/stylesheets/syntaxhighlighter/shCoreDjango.css
241
+ - guides/assets/stylesheets/syntaxhighlighter/shCoreEclipse.css
242
+ - guides/assets/stylesheets/syntaxhighlighter/shCoreEmacs.css
243
+ - guides/assets/stylesheets/syntaxhighlighter/shCoreFadeToGrey.css
244
+ - guides/assets/stylesheets/syntaxhighlighter/shCoreMDUltra.css
245
+ - guides/assets/stylesheets/syntaxhighlighter/shCoreMidnight.css
246
+ - guides/assets/stylesheets/syntaxhighlighter/shCoreRDark.css
247
+ - guides/assets/stylesheets/syntaxhighlighter/shThemeDefault.css
248
+ - guides/assets/stylesheets/syntaxhighlighter/shThemeDjango.css
249
+ - guides/assets/stylesheets/syntaxhighlighter/shThemeEclipse.css
250
+ - guides/assets/stylesheets/syntaxhighlighter/shThemeEmacs.css
251
+ - guides/assets/stylesheets/syntaxhighlighter/shThemeFadeToGrey.css
252
+ - guides/assets/stylesheets/syntaxhighlighter/shThemeMDUltra.css
253
+ - guides/assets/stylesheets/syntaxhighlighter/shThemeMidnight.css
254
+ - guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css
255
+ - guides/assets/stylesheets/syntaxhighlighter/shThemeRDark.css
256
+ - guides/code/getting_started/app/assets/images/rails.png
257
+ - guides/code/getting_started/app/assets/javascripts/application.js
258
+ - guides/code/getting_started/app/assets/javascripts/comments.js.coffee
341
259
  - guides/code/getting_started/app/assets/javascripts/home.js.coffee
342
- - guides/code/getting_started/app/controllers/home_controller.rb
260
+ - guides/code/getting_started/app/assets/javascripts/posts.js.coffee
261
+ - guides/code/getting_started/app/assets/stylesheets/application.css
262
+ - guides/code/getting_started/app/assets/stylesheets/comments.css.scss
263
+ - guides/code/getting_started/app/assets/stylesheets/home.css.scss
264
+ - guides/code/getting_started/app/assets/stylesheets/posts.css.scss
265
+ - guides/code/getting_started/app/assets/stylesheets/scaffolds.css.scss
343
266
  - guides/code/getting_started/app/controllers/application_controller.rb
344
- - guides/code/getting_started/app/controllers/posts_controller.rb
345
267
  - guides/code/getting_started/app/controllers/comments_controller.rb
346
- - guides/code/getting_started/app/views/layouts/application.html.erb
347
- - guides/code/getting_started/app/views/home/index.html.erb
268
+ - guides/code/getting_started/app/controllers/home_controller.rb
269
+ - guides/code/getting_started/app/controllers/posts_controller.rb
270
+ - guides/code/getting_started/app/helpers/application_helper.rb
271
+ - guides/code/getting_started/app/helpers/comments_helper.rb
272
+ - guides/code/getting_started/app/helpers/home_helper.rb
273
+ - guides/code/getting_started/app/helpers/posts_helper.rb
274
+ - guides/code/getting_started/app/models/comment.rb
275
+ - guides/code/getting_started/app/models/post.rb
276
+ - guides/code/getting_started/app/models/tag.rb
348
277
  - guides/code/getting_started/app/views/comments/_comment.html.erb
349
278
  - guides/code/getting_started/app/views/comments/_form.html.erb
350
- - guides/code/getting_started/app/views/tags/_form.html.erb
351
- - guides/code/getting_started/app/views/posts/index.html.erb
279
+ - guides/code/getting_started/app/views/home/index.html.erb
280
+ - guides/code/getting_started/app/views/layouts/application.html.erb
281
+ - guides/code/getting_started/app/views/posts/_form.html.erb
352
282
  - guides/code/getting_started/app/views/posts/edit.html.erb
353
- - guides/code/getting_started/app/views/posts/show.html.erb
283
+ - guides/code/getting_started/app/views/posts/index.html.erb
354
284
  - guides/code/getting_started/app/views/posts/new.html.erb
355
- - guides/code/getting_started/app/views/posts/_form.html.erb
356
- - guides/code/getting_started/app/models/comment.rb
357
- - guides/code/getting_started/app/models/tag.rb
358
- - guides/code/getting_started/app/models/post.rb
359
- - guides/code/getting_started/app/helpers/application_helper.rb
360
- - guides/code/getting_started/app/helpers/comments_helper.rb
361
- - guides/code/getting_started/app/helpers/posts_helper.rb
362
- - guides/code/getting_started/app/helpers/home_helper.rb
363
- - guides/code/getting_started/README.rdoc
364
- - guides/code/getting_started/public/favicon.ico
365
- - guides/code/getting_started/public/500.html
366
- - guides/code/getting_started/public/422.html
367
- - guides/code/getting_started/public/robots.txt
368
- - guides/code/getting_started/public/404.html
369
- - guides/code/getting_started/config/initializers/mime_types.rb
370
- - guides/code/getting_started/config/initializers/session_store.rb
371
- - guides/code/getting_started/config/initializers/secret_token.rb
372
- - guides/code/getting_started/config/initializers/inflections.rb
373
- - guides/code/getting_started/config/initializers/backtrace_silencers.rb
374
- - guides/code/getting_started/config/initializers/wrap_parameters.rb
375
- - guides/code/getting_started/config/environments/production.rb
376
- - guides/code/getting_started/config/environments/test.rb
377
- - guides/code/getting_started/config/environments/development.rb
378
- - guides/code/getting_started/config/routes.rb
285
+ - guides/code/getting_started/app/views/posts/show.html.erb
286
+ - guides/code/getting_started/app/views/tags/_form.html.erb
379
287
  - guides/code/getting_started/config/application.rb
380
- - guides/code/getting_started/config/locales/en.yml
381
288
  - guides/code/getting_started/config/boot.rb
382
289
  - guides/code/getting_started/config/database.yml
383
290
  - guides/code/getting_started/config/environment.rb
384
- - guides/code/getting_started/Gemfile
291
+ - guides/code/getting_started/config/environments/development.rb
292
+ - guides/code/getting_started/config/environments/production.rb
293
+ - guides/code/getting_started/config/environments/test.rb
294
+ - guides/code/getting_started/config/initializers/backtrace_silencers.rb
295
+ - guides/code/getting_started/config/initializers/inflections.rb
296
+ - guides/code/getting_started/config/initializers/mime_types.rb
297
+ - guides/code/getting_started/config/initializers/secret_token.rb
298
+ - guides/code/getting_started/config/initializers/session_store.rb
299
+ - guides/code/getting_started/config/initializers/wrap_parameters.rb
300
+ - guides/code/getting_started/config/locales/en.yml
301
+ - guides/code/getting_started/config/routes.rb
385
302
  - guides/code/getting_started/config.ru
303
+ - guides/code/getting_started/db/migrate/20110901012504_create_posts.rb
304
+ - guides/code/getting_started/db/migrate/20110901012815_create_comments.rb
305
+ - guides/code/getting_started/db/migrate/20110901013701_create_tags.rb
306
+ - guides/code/getting_started/db/schema.rb
307
+ - guides/code/getting_started/db/seeds.rb
308
+ - guides/code/getting_started/doc/README_FOR_APP
309
+ - guides/code/getting_started/Gemfile
310
+ - guides/code/getting_started/public/404.html
311
+ - guides/code/getting_started/public/422.html
312
+ - guides/code/getting_started/public/500.html
313
+ - guides/code/getting_started/public/favicon.ico
314
+ - guides/code/getting_started/public/robots.txt
315
+ - guides/code/getting_started/Rakefile
316
+ - guides/code/getting_started/README.rdoc
317
+ - guides/code/getting_started/script/rails
318
+ - guides/code/getting_started/test/fixtures/comments.yml
319
+ - guides/code/getting_started/test/fixtures/posts.yml
320
+ - guides/code/getting_started/test/fixtures/tags.yml
321
+ - guides/code/getting_started/test/functional/comments_controller_test.rb
322
+ - guides/code/getting_started/test/functional/home_controller_test.rb
323
+ - guides/code/getting_started/test/functional/posts_controller_test.rb
324
+ - guides/code/getting_started/test/performance/browsing_test.rb
325
+ - guides/code/getting_started/test/test_helper.rb
326
+ - guides/code/getting_started/test/unit/comment_test.rb
327
+ - guides/code/getting_started/test/unit/helpers/comments_helper_test.rb
328
+ - guides/code/getting_started/test/unit/helpers/home_helper_test.rb
329
+ - guides/code/getting_started/test/unit/helpers/posts_helper_test.rb
330
+ - guides/code/getting_started/test/unit/post_test.rb
331
+ - guides/code/getting_started/test/unit/tag_test.rb
332
+ - guides/rails_guides/generator.rb
333
+ - guides/rails_guides/helpers.rb
334
+ - guides/rails_guides/indexer.rb
335
+ - guides/rails_guides/levenshtein.rb
336
+ - guides/rails_guides/textile_extensions.rb
386
337
  - guides/rails_guides.rb
387
- - lib/rails.rb
388
- - lib/rails/engine/railties.rb
389
- - lib/rails/engine/configuration.rb
390
- - lib/rails/engine/commands.rb
391
- - lib/rails/engine.rb
392
- - lib/rails/railtie.rb
393
- - lib/rails/console/app.rb
394
- - lib/rails/console/helpers.rb
395
- - lib/rails/commands/benchmarker.rb
396
- - lib/rails/commands/server.rb
397
- - lib/rails/commands/plugin_new.rb
338
+ - guides/source/2_2_release_notes.textile
339
+ - guides/source/2_3_release_notes.textile
340
+ - guides/source/3_0_release_notes.textile
341
+ - guides/source/3_1_release_notes.textile
342
+ - guides/source/3_2_release_notes.textile
343
+ - guides/source/_license.html.erb
344
+ - guides/source/_welcome.html.erb
345
+ - guides/source/action_controller_overview.textile
346
+ - guides/source/action_mailer_basics.textile
347
+ - guides/source/action_view_overview.textile
348
+ - guides/source/active_model_basics.textile
349
+ - guides/source/active_record_basics.textile
350
+ - guides/source/active_record_querying.textile
351
+ - guides/source/active_record_validations_callbacks.textile
352
+ - guides/source/active_resource_basics.textile
353
+ - guides/source/active_support_core_extensions.textile
354
+ - guides/source/ajax_on_rails.textile
355
+ - guides/source/api_documentation_guidelines.textile
356
+ - guides/source/asset_pipeline.textile
357
+ - guides/source/association_basics.textile
358
+ - guides/source/caching_with_rails.textile
359
+ - guides/source/command_line.textile
360
+ - guides/source/configuring.textile
361
+ - guides/source/contributing_to_ruby_on_rails.textile
362
+ - guides/source/credits.html.erb
363
+ - guides/source/debugging_rails_applications.textile
364
+ - guides/source/documents.yaml
365
+ - guides/source/engines.textile
366
+ - guides/source/form_helpers.textile
367
+ - guides/source/generators.textile
368
+ - guides/source/getting_started.textile
369
+ - guides/source/i18n.textile
370
+ - guides/source/index.html.erb
371
+ - guides/source/initialization.textile
372
+ - guides/source/kindle/copyright.html.erb
373
+ - guides/source/kindle/KINDLE.md
374
+ - guides/source/kindle/layout.html.erb
375
+ - guides/source/kindle/rails_guides.opf.erb
376
+ - guides/source/kindle/toc.html.erb
377
+ - guides/source/kindle/toc.ncx.erb
378
+ - guides/source/kindle/welcome.html.erb
379
+ - guides/source/layout.html.erb
380
+ - guides/source/layouts_and_rendering.textile
381
+ - guides/source/migrations.textile
382
+ - guides/source/nested_model_forms.textile
383
+ - guides/source/performance_testing.textile
384
+ - guides/source/plugins.textile
385
+ - guides/source/rails_application_templates.textile
386
+ - guides/source/rails_on_rack.textile
387
+ - guides/source/routing.textile
388
+ - guides/source/ruby_on_rails_guides_guidelines.textile
389
+ - guides/source/security.textile
390
+ - guides/source/testing.textile
391
+ - guides/w3c_validator.rb
392
+ - lib/rails/all.rb
393
+ - lib/rails/application/bootstrap.rb
394
+ - lib/rails/application/configuration.rb
395
+ - lib/rails/application/finisher.rb
396
+ - lib/rails/application/railties.rb
397
+ - lib/rails/application/route_inspector.rb
398
+ - lib/rails/application/routes_reloader.rb
399
+ - lib/rails/application.rb
400
+ - lib/rails/backtrace_cleaner.rb
401
+ - lib/rails/cli.rb
402
+ - lib/rails/code_statistics.rb
398
403
  - lib/rails/commands/application.rb
404
+ - lib/rails/commands/benchmarker.rb
405
+ - lib/rails/commands/console.rb
406
+ - lib/rails/commands/dbconsole.rb
407
+ - lib/rails/commands/destroy.rb
399
408
  - lib/rails/commands/generate.rb
409
+ - lib/rails/commands/plugin.rb
410
+ - lib/rails/commands/plugin_new.rb
400
411
  - lib/rails/commands/profiler.rb
401
412
  - lib/rails/commands/runner.rb
402
- - lib/rails/commands/dbconsole.rb
413
+ - lib/rails/commands/server.rb
403
414
  - lib/rails/commands/update.rb
404
- - lib/rails/commands/plugin.rb
405
- - lib/rails/commands/console.rb
406
- - lib/rails/commands/destroy.rb
407
- - lib/rails/initializable.rb
408
- - lib/rails/tasks.rb
409
- - lib/rails/code_statistics.rb
410
- - lib/rails/all.rb
415
+ - lib/rails/commands.rb
411
416
  - lib/rails/configuration.rb
412
- - lib/rails/info.rb
413
- - lib/rails/backtrace_cleaner.rb
417
+ - lib/rails/console/app.rb
418
+ - lib/rails/console/helpers.rb
419
+ - lib/rails/engine/commands.rb
420
+ - lib/rails/engine/configuration.rb
421
+ - lib/rails/engine/railties.rb
422
+ - lib/rails/engine.rb
423
+ - lib/rails/generators/actions.rb
424
+ - lib/rails/generators/active_model.rb
425
+ - lib/rails/generators/app_base.rb
426
+ - lib/rails/generators/base.rb
427
+ - lib/rails/generators/css/assets/assets_generator.rb
428
+ - lib/rails/generators/css/assets/templates/stylesheet.css
429
+ - lib/rails/generators/css/scaffold/scaffold_generator.rb
430
+ - lib/rails/generators/erb/controller/controller_generator.rb
431
+ - lib/rails/generators/erb/controller/templates/view.html.erb
414
432
  - lib/rails/generators/erb/mailer/mailer_generator.rb
415
433
  - lib/rails/generators/erb/mailer/templates/view.text.erb
416
434
  - lib/rails/generators/erb/scaffold/scaffold_generator.rb
417
- - lib/rails/generators/erb/scaffold/templates/index.html.erb
418
- - lib/rails/generators/erb/scaffold/templates/edit.html.erb
419
- - lib/rails/generators/erb/scaffold/templates/show.html.erb
420
- - lib/rails/generators/erb/scaffold/templates/new.html.erb
421
435
  - lib/rails/generators/erb/scaffold/templates/_form.html.erb
422
- - lib/rails/generators/erb/controller/controller_generator.rb
423
- - lib/rails/generators/erb/controller/templates/view.html.erb
424
- - lib/rails/generators/resource_helpers.rb
425
- - lib/rails/generators/test_case.rb
426
- - lib/rails/generators/erb.rb
427
- - lib/rails/generators/js/assets/assets_generator.rb
428
- - lib/rails/generators/js/assets/templates/javascript.js
429
- - lib/rails/generators/base.rb
430
- - lib/rails/generators/app_base.rb
431
- - lib/rails/generators/test_unit/observer/observer_generator.rb
432
- - lib/rails/generators/test_unit/observer/templates/unit_test.rb
433
- - lib/rails/generators/test_unit/performance/performance_generator.rb
434
- - lib/rails/generators/test_unit/performance/templates/performance_test.rb
435
- - lib/rails/generators/test_unit/mailer/mailer_generator.rb
436
- - lib/rails/generators/test_unit/mailer/templates/functional_test.rb
437
- - lib/rails/generators/test_unit/helper/helper_generator.rb
438
- - lib/rails/generators/test_unit/helper/templates/helper_test.rb
439
- - lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
440
- - lib/rails/generators/test_unit/scaffold/templates/functional_test.rb
441
- - lib/rails/generators/test_unit/plugin/plugin_generator.rb
442
- - lib/rails/generators/test_unit/plugin/templates/test_helper.rb
443
- - lib/rails/generators/test_unit/plugin/templates/%file_name%_test.rb.tt
444
- - lib/rails/generators/test_unit/integration/integration_generator.rb
445
- - lib/rails/generators/test_unit/integration/templates/integration_test.rb
446
- - lib/rails/generators/test_unit/model/model_generator.rb
447
- - lib/rails/generators/test_unit/model/templates/unit_test.rb
448
- - lib/rails/generators/test_unit/model/templates/fixtures.yml
449
- - lib/rails/generators/test_unit/controller/controller_generator.rb
450
- - lib/rails/generators/test_unit/controller/templates/functional_test.rb
451
- - lib/rails/generators/generated_attribute.rb
452
- - lib/rails/generators/active_model.rb
453
- - lib/rails/generators/named_base.rb
454
- - lib/rails/generators/rails/observer/observer_generator.rb
455
- - lib/rails/generators/rails/observer/USAGE
456
- - lib/rails/generators/rails/integration_test/integration_test_generator.rb
457
- - lib/rails/generators/rails/integration_test/USAGE
458
- - lib/rails/generators/rails/performance_test/USAGE
459
- - lib/rails/generators/rails/performance_test/performance_test_generator.rb
460
- - lib/rails/generators/rails/assets/assets_generator.rb
461
- - lib/rails/generators/rails/assets/USAGE
462
- - lib/rails/generators/rails/assets/templates/javascript.js
463
- - lib/rails/generators/rails/assets/templates/stylesheet.css
464
- - lib/rails/generators/rails/resource/USAGE
465
- - lib/rails/generators/rails/resource/resource_generator.rb
466
- - lib/rails/generators/rails/helper/helper_generator.rb
467
- - lib/rails/generators/rails/helper/USAGE
468
- - lib/rails/generators/rails/helper/templates/helper.rb
469
- - lib/rails/generators/rails/scaffold/USAGE
470
- - lib/rails/generators/rails/scaffold/scaffold_generator.rb
471
- - lib/rails/generators/rails/scaffold/templates/scaffold.css
472
- - lib/rails/generators/rails/task/USAGE
473
- - lib/rails/generators/rails/task/task_generator.rb
474
- - lib/rails/generators/rails/task/templates/task.rb
475
- - lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb
476
- - lib/rails/generators/rails/scaffold_controller/USAGE
477
- - lib/rails/generators/rails/scaffold_controller/templates/controller.rb
436
+ - lib/rails/generators/erb/scaffold/templates/edit.html.erb
437
+ - lib/rails/generators/erb/scaffold/templates/index.html.erb
438
+ - lib/rails/generators/erb/scaffold/templates/new.html.erb
439
+ - lib/rails/generators/erb/scaffold/templates/show.html.erb
440
+ - lib/rails/generators/erb.rb
441
+ - lib/rails/generators/generated_attribute.rb
442
+ - lib/rails/generators/js/assets/assets_generator.rb
443
+ - lib/rails/generators/js/assets/templates/javascript.js
444
+ - lib/rails/generators/migration.rb
445
+ - lib/rails/generators/named_base.rb
478
446
  - lib/rails/generators/rails/app/app_generator.rb
479
- - lib/rails/generators/rails/app/USAGE
480
- - lib/rails/generators/rails/app/templates/README
481
- - lib/rails/generators/rails/app/templates/db/seeds.rb.tt
482
- - lib/rails/generators/rails/app/templates/script/rails
483
- - lib/rails/generators/rails/app/templates/doc/README_FOR_APP
484
- - lib/rails/generators/rails/app/templates/test/performance/browsing_test.rb
485
- - lib/rails/generators/rails/app/templates/test/test_helper.rb
486
- - lib/rails/generators/rails/app/templates/gitignore
487
- - lib/rails/generators/rails/app/templates/Rakefile
488
- - lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css
489
447
  - lib/rails/generators/rails/app/templates/app/assets/images/rails.png
490
448
  - lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt
449
+ - lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css
491
450
  - lib/rails/generators/rails/app/templates/app/controllers/application_controller.rb
492
- - lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt
493
451
  - lib/rails/generators/rails/app/templates/app/helpers/application_helper.rb
494
- - lib/rails/generators/rails/app/templates/public/favicon.ico
495
- - lib/rails/generators/rails/app/templates/public/500.html
496
- - lib/rails/generators/rails/app/templates/public/422.html
497
- - lib/rails/generators/rails/app/templates/public/index.html
498
- - lib/rails/generators/rails/app/templates/public/robots.txt
499
- - lib/rails/generators/rails/app/templates/public/404.html
500
- - lib/rails/generators/rails/app/templates/config/initializers/mime_types.rb
501
- - lib/rails/generators/rails/app/templates/config/initializers/inflections.rb
502
- - lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt
503
- - lib/rails/generators/rails/app/templates/config/initializers/session_store.rb.tt
504
- - lib/rails/generators/rails/app/templates/config/initializers/backtrace_silencers.rb
505
- - lib/rails/generators/rails/app/templates/config/initializers/secret_token.rb.tt
506
- - lib/rails/generators/rails/app/templates/config/environments/production.rb.tt
507
- - lib/rails/generators/rails/app/templates/config/environments/development.rb.tt
508
- - lib/rails/generators/rails/app/templates/config/environments/test.rb.tt
509
- - lib/rails/generators/rails/app/templates/config/routes.rb
452
+ - lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt
510
453
  - lib/rails/generators/rails/app/templates/config/application.rb
511
- - lib/rails/generators/rails/app/templates/config/locales/en.yml
512
454
  - lib/rails/generators/rails/app/templates/config/boot.rb
513
- - lib/rails/generators/rails/app/templates/config/environment.rb
455
+ - lib/rails/generators/rails/app/templates/config/databases/frontbase.yml
514
456
  - lib/rails/generators/rails/app/templates/config/databases/ibm_db.yml
515
- - lib/rails/generators/rails/app/templates/config/databases/jdbcmysql.yml
516
- - lib/rails/generators/rails/app/templates/config/databases/postgresql.yml
517
457
  - lib/rails/generators/rails/app/templates/config/databases/jdbc.yml
518
- - lib/rails/generators/rails/app/templates/config/databases/oracle.yml
519
- - lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml
520
- - lib/rails/generators/rails/app/templates/config/databases/mysql.yml
458
+ - lib/rails/generators/rails/app/templates/config/databases/jdbcmysql.yml
521
459
  - lib/rails/generators/rails/app/templates/config/databases/jdbcpostgresql.yml
522
- - lib/rails/generators/rails/app/templates/config/databases/frontbase.yml
523
460
  - lib/rails/generators/rails/app/templates/config/databases/jdbcsqlite3.yml
524
- - lib/rails/generators/rails/app/templates/Gemfile
461
+ - lib/rails/generators/rails/app/templates/config/databases/mysql.yml
462
+ - lib/rails/generators/rails/app/templates/config/databases/oracle.yml
463
+ - lib/rails/generators/rails/app/templates/config/databases/postgresql.yml
464
+ - lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml
465
+ - lib/rails/generators/rails/app/templates/config/environment.rb
466
+ - lib/rails/generators/rails/app/templates/config/environments/development.rb.tt
467
+ - lib/rails/generators/rails/app/templates/config/environments/production.rb.tt
468
+ - lib/rails/generators/rails/app/templates/config/environments/test.rb.tt
469
+ - lib/rails/generators/rails/app/templates/config/initializers/backtrace_silencers.rb
470
+ - lib/rails/generators/rails/app/templates/config/initializers/inflections.rb
471
+ - lib/rails/generators/rails/app/templates/config/initializers/mime_types.rb
472
+ - lib/rails/generators/rails/app/templates/config/initializers/secret_token.rb.tt
473
+ - lib/rails/generators/rails/app/templates/config/initializers/session_store.rb.tt
474
+ - lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt
475
+ - lib/rails/generators/rails/app/templates/config/locales/en.yml
476
+ - lib/rails/generators/rails/app/templates/config/routes.rb
525
477
  - lib/rails/generators/rails/app/templates/config.ru
526
- - lib/rails/generators/rails/model/model_generator.rb
527
- - lib/rails/generators/rails/model/USAGE
528
- - lib/rails/generators/rails/session_migration/session_migration_generator.rb
529
- - lib/rails/generators/rails/session_migration/USAGE
530
- - lib/rails/generators/rails/generator/generator_generator.rb
531
- - lib/rails/generators/rails/generator/USAGE
532
- - lib/rails/generators/rails/generator/templates/USAGE.tt
533
- - lib/rails/generators/rails/generator/templates/%file_name%_generator.rb.tt
478
+ - lib/rails/generators/rails/app/templates/db/seeds.rb.tt
479
+ - lib/rails/generators/rails/app/templates/doc/README_FOR_APP
480
+ - lib/rails/generators/rails/app/templates/Gemfile
481
+ - lib/rails/generators/rails/app/templates/gitignore
482
+ - lib/rails/generators/rails/app/templates/public/404.html
483
+ - lib/rails/generators/rails/app/templates/public/422.html
484
+ - lib/rails/generators/rails/app/templates/public/500.html
485
+ - lib/rails/generators/rails/app/templates/public/favicon.ico
486
+ - lib/rails/generators/rails/app/templates/public/index.html
487
+ - lib/rails/generators/rails/app/templates/public/robots.txt
488
+ - lib/rails/generators/rails/app/templates/Rakefile
489
+ - lib/rails/generators/rails/app/templates/README
490
+ - lib/rails/generators/rails/app/templates/script/rails
491
+ - lib/rails/generators/rails/app/templates/test/performance/browsing_test.rb
492
+ - lib/rails/generators/rails/app/templates/test/test_helper.rb
493
+ - lib/rails/generators/rails/app/USAGE
494
+ - lib/rails/generators/rails/assets/assets_generator.rb
495
+ - lib/rails/generators/rails/assets/templates/javascript.js
496
+ - lib/rails/generators/rails/assets/templates/stylesheet.css
497
+ - lib/rails/generators/rails/assets/USAGE
534
498
  - lib/rails/generators/rails/controller/controller_generator.rb
535
- - lib/rails/generators/rails/controller/USAGE
536
499
  - lib/rails/generators/rails/controller/templates/controller.rb
500
+ - lib/rails/generators/rails/controller/USAGE
501
+ - lib/rails/generators/rails/generator/generator_generator.rb
502
+ - lib/rails/generators/rails/generator/templates/%file_name%_generator.rb.tt
503
+ - lib/rails/generators/rails/generator/templates/USAGE.tt
504
+ - lib/rails/generators/rails/generator/USAGE
505
+ - lib/rails/generators/rails/helper/helper_generator.rb
506
+ - lib/rails/generators/rails/helper/templates/helper.rb
507
+ - lib/rails/generators/rails/helper/USAGE
508
+ - lib/rails/generators/rails/integration_test/integration_test_generator.rb
509
+ - lib/rails/generators/rails/integration_test/USAGE
537
510
  - lib/rails/generators/rails/migration/migration_generator.rb
538
511
  - lib/rails/generators/rails/migration/USAGE
512
+ - lib/rails/generators/rails/model/model_generator.rb
513
+ - lib/rails/generators/rails/model/USAGE
514
+ - lib/rails/generators/rails/observer/observer_generator.rb
515
+ - lib/rails/generators/rails/observer/USAGE
516
+ - lib/rails/generators/rails/performance_test/performance_test_generator.rb
517
+ - lib/rails/generators/rails/performance_test/USAGE
539
518
  - lib/rails/generators/rails/plugin_new/plugin_new_generator.rb
540
- - lib/rails/generators/rails/plugin_new/USAGE
541
- - lib/rails/generators/rails/plugin_new/templates/lib/%name%.rb
542
- - lib/rails/generators/rails/plugin_new/templates/lib/tasks/%name%_tasks.rake
543
- - lib/rails/generators/rails/plugin_new/templates/lib/%name%/engine.rb
544
- - lib/rails/generators/rails/plugin_new/templates/lib/%name%/version.rb
545
- - lib/rails/generators/rails/plugin_new/templates/script/rails.tt
546
- - lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb
547
- - lib/rails/generators/rails/plugin_new/templates/test/%name%_test.rb
548
- - lib/rails/generators/rails/plugin_new/templates/test/integration/navigation_test.rb
549
- - lib/rails/generators/rails/plugin_new/templates/MIT-LICENSE
550
- - lib/rails/generators/rails/plugin_new/templates/gitignore
551
519
  - lib/rails/generators/rails/plugin_new/templates/%name%.gemspec
552
- - lib/rails/generators/rails/plugin_new/templates/Rakefile
553
520
  - lib/rails/generators/rails/plugin_new/templates/app/controllers/%name%/application_controller.rb.tt
554
- - lib/rails/generators/rails/plugin_new/templates/app/views/layouts/%name%/application.html.erb.tt
555
521
  - lib/rails/generators/rails/plugin_new/templates/app/helpers/%name%/application_helper.rb.tt
556
- - lib/rails/generators/rails/plugin_new/templates/README.rdoc
557
- - lib/rails/generators/rails/plugin_new/templates/rails/routes.rb
558
- - lib/rails/generators/rails/plugin_new/templates/rails/application.rb
559
- - lib/rails/generators/rails/plugin_new/templates/rails/boot.rb
522
+ - lib/rails/generators/rails/plugin_new/templates/app/views/layouts/%name%/application.html.erb.tt
560
523
  - lib/rails/generators/rails/plugin_new/templates/config/routes.rb
561
524
  - lib/rails/generators/rails/plugin_new/templates/Gemfile
562
- - lib/rails/generators/css/assets/assets_generator.rb
563
- - lib/rails/generators/css/assets/templates/stylesheet.css
564
- - lib/rails/generators/css/scaffold/scaffold_generator.rb
565
- - lib/rails/generators/actions.rb
525
+ - lib/rails/generators/rails/plugin_new/templates/gitignore
526
+ - lib/rails/generators/rails/plugin_new/templates/lib/%name%/engine.rb
527
+ - lib/rails/generators/rails/plugin_new/templates/lib/%name%/version.rb
528
+ - lib/rails/generators/rails/plugin_new/templates/lib/%name%.rb
529
+ - lib/rails/generators/rails/plugin_new/templates/lib/tasks/%name%_tasks.rake
530
+ - lib/rails/generators/rails/plugin_new/templates/MIT-LICENSE
531
+ - lib/rails/generators/rails/plugin_new/templates/rails/application.rb
532
+ - lib/rails/generators/rails/plugin_new/templates/rails/boot.rb
533
+ - lib/rails/generators/rails/plugin_new/templates/rails/routes.rb
534
+ - lib/rails/generators/rails/plugin_new/templates/Rakefile
535
+ - lib/rails/generators/rails/plugin_new/templates/README.rdoc
536
+ - lib/rails/generators/rails/plugin_new/templates/script/rails.tt
537
+ - lib/rails/generators/rails/plugin_new/templates/test/%name%_test.rb
538
+ - lib/rails/generators/rails/plugin_new/templates/test/integration/navigation_test.rb
539
+ - lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb
540
+ - lib/rails/generators/rails/plugin_new/USAGE
541
+ - lib/rails/generators/rails/resource/resource_generator.rb
542
+ - lib/rails/generators/rails/resource/USAGE
543
+ - lib/rails/generators/rails/scaffold/scaffold_generator.rb
544
+ - lib/rails/generators/rails/scaffold/templates/scaffold.css
545
+ - lib/rails/generators/rails/scaffold/USAGE
546
+ - lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb
547
+ - lib/rails/generators/rails/scaffold_controller/templates/controller.rb
548
+ - lib/rails/generators/rails/scaffold_controller/USAGE
549
+ - lib/rails/generators/rails/session_migration/session_migration_generator.rb
550
+ - lib/rails/generators/rails/session_migration/USAGE
551
+ - lib/rails/generators/rails/task/task_generator.rb
552
+ - lib/rails/generators/rails/task/templates/task.rb
553
+ - lib/rails/generators/rails/task/USAGE
554
+ - lib/rails/generators/resource_helpers.rb
555
+ - lib/rails/generators/test_case.rb
556
+ - lib/rails/generators/test_unit/controller/controller_generator.rb
557
+ - lib/rails/generators/test_unit/controller/templates/functional_test.rb
558
+ - lib/rails/generators/test_unit/helper/helper_generator.rb
559
+ - lib/rails/generators/test_unit/helper/templates/helper_test.rb
560
+ - lib/rails/generators/test_unit/integration/integration_generator.rb
561
+ - lib/rails/generators/test_unit/integration/templates/integration_test.rb
562
+ - lib/rails/generators/test_unit/mailer/mailer_generator.rb
563
+ - lib/rails/generators/test_unit/mailer/templates/functional_test.rb
564
+ - lib/rails/generators/test_unit/model/model_generator.rb
565
+ - lib/rails/generators/test_unit/model/templates/fixtures.yml
566
+ - lib/rails/generators/test_unit/model/templates/unit_test.rb
567
+ - lib/rails/generators/test_unit/observer/observer_generator.rb
568
+ - lib/rails/generators/test_unit/observer/templates/unit_test.rb
569
+ - lib/rails/generators/test_unit/performance/performance_generator.rb
570
+ - lib/rails/generators/test_unit/performance/templates/performance_test.rb
571
+ - lib/rails/generators/test_unit/plugin/plugin_generator.rb
572
+ - lib/rails/generators/test_unit/plugin/templates/%file_name%_test.rb.tt
573
+ - lib/rails/generators/test_unit/plugin/templates/test_helper.rb
574
+ - lib/rails/generators/test_unit/scaffold/scaffold_generator.rb
575
+ - lib/rails/generators/test_unit/scaffold/templates/functional_test.rb
566
576
  - lib/rails/generators/test_unit.rb
567
- - lib/rails/generators/migration.rb
568
- - lib/rails/application.rb
569
- - lib/rails/rubyprof_ext.rb
570
577
  - lib/rails/generators.rb
571
- - lib/rails/test_unit/railtie.rb
572
- - lib/rails/test_unit/sub_test_task.rb
573
- - lib/rails/test_unit/testing.rake
574
- - lib/rails/tasks/engine.rake
575
- - lib/rails/tasks/documentation.rake
576
- - lib/rails/tasks/routes.rake
577
- - lib/rails/tasks/misc.rake
578
- - lib/rails/tasks/tmp.rake
579
- - lib/rails/tasks/log.rake
580
- - lib/rails/tasks/annotations.rake
581
- - lib/rails/tasks/statistics.rake
582
- - lib/rails/tasks/middleware.rake
583
- - lib/rails/tasks/framework.rake
584
- - lib/rails/application/finisher.rb
585
- - lib/rails/application/railties.rb
586
- - lib/rails/application/configuration.rb
587
- - lib/rails/application/route_inspector.rb
588
- - lib/rails/application/routes_reloader.rb
589
- - lib/rails/application/bootstrap.rb
590
- - lib/rails/paths.rb
578
+ - lib/rails/info.rb
591
579
  - lib/rails/info_controller.rb
592
- - lib/rails/rack.rb
593
- - lib/rails/version.rb
594
- - lib/rails/ruby_version_check.rb
595
- - lib/rails/rack/logger.rb
596
- - lib/rails/rack/log_tailer.rb
580
+ - lib/rails/initializable.rb
581
+ - lib/rails/paths.rb
582
+ - lib/rails/performance_test_help.rb
583
+ - lib/rails/plugin.rb
597
584
  - lib/rails/rack/debugger.rb
598
- - lib/rails/railtie/configuration.rb
585
+ - lib/rails/rack/log_tailer.rb
586
+ - lib/rails/rack/logger.rb
587
+ - lib/rails/rack.rb
599
588
  - lib/rails/railtie/configurable.rb
600
- - lib/rails/cli.rb
589
+ - lib/rails/railtie/configuration.rb
590
+ - lib/rails/railtie.rb
591
+ - lib/rails/ruby_version_check.rb
592
+ - lib/rails/rubyprof_ext.rb
593
+ - lib/rails/script_rails_loader.rb
601
594
  - lib/rails/source_annotation_extractor.rb
602
- - lib/rails/performance_test_help.rb
603
- - lib/rails/commands.rb
604
- - lib/rails/plugin.rb
595
+ - lib/rails/tasks/annotations.rake
596
+ - lib/rails/tasks/documentation.rake
597
+ - lib/rails/tasks/engine.rake
598
+ - lib/rails/tasks/framework.rake
599
+ - lib/rails/tasks/log.rake
600
+ - lib/rails/tasks/middleware.rake
601
+ - lib/rails/tasks/misc.rake
602
+ - lib/rails/tasks/routes.rake
603
+ - lib/rails/tasks/statistics.rake
604
+ - lib/rails/tasks/tmp.rake
605
+ - lib/rails/tasks.rb
605
606
  - lib/rails/test_help.rb
606
- - lib/rails/script_rails_loader.rb
607
- - lib/rails/generators/rails/app/templates/test/unit/.empty_directory
608
- - lib/rails/generators/rails/app/templates/test/functional/.empty_directory
609
- - lib/rails/generators/rails/app/templates/test/integration/.empty_directory
610
- - lib/rails/generators/rails/app/templates/test/fixtures/.empty_directory
607
+ - lib/rails/test_unit/railtie.rb
608
+ - lib/rails/test_unit/sub_test_task.rb
609
+ - lib/rails/test_unit/testing.rake
610
+ - lib/rails/version.rb
611
+ - lib/rails.rb
611
612
  - lib/rails/generators/rails/app/templates/app/mailers/.empty_directory
612
613
  - lib/rails/generators/rails/app/templates/app/models/.empty_directory
613
614
  - lib/rails/generators/rails/app/templates/public/stylesheets/.empty_directory
615
+ - lib/rails/generators/rails/app/templates/test/fixtures/.empty_directory
616
+ - lib/rails/generators/rails/app/templates/test/functional/.empty_directory
617
+ - lib/rails/generators/rails/app/templates/test/integration/.empty_directory
618
+ - lib/rails/generators/rails/app/templates/test/unit/.empty_directory
614
619
  - lib/rails/generators/rails/generator/templates/templates/.empty_directory
615
620
  - lib/rails/generators/rails/plugin_new/templates/app/mailers/.empty_directory
616
621
  - lib/rails/generators/rails/plugin_new/templates/app/models/.empty_directory
617
- has_rdoc: true
618
622
  homepage: http://www.rubyonrails.org
619
623
  licenses: []
620
624
 
@@ -638,16 +642,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
638
642
  required_rubygems_version: !ruby/object:Gem::Requirement
639
643
  none: false
640
644
  requirements:
641
- - - ">="
645
+ - - ">"
642
646
  - !ruby/object:Gem::Version
643
- hash: 3
647
+ hash: 25
644
648
  segments:
645
- - 0
646
- version: "0"
649
+ - 1
650
+ - 3
651
+ - 1
652
+ version: 1.3.1
647
653
  requirements: []
648
654
 
649
655
  rubyforge_project:
650
- rubygems_version: 1.6.2
656
+ rubygems_version: 1.8.16
651
657
  signing_key:
652
658
  specification_version: 3
653
659
  summary: Tools for creating, working with, and running Rails applications.