railties 3.2.0.rc1 → 3.2.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. data/CHANGELOG.md +6 -0
  2. data/guides/assets/images/rails_guides_kindle_cover.jpg +0 -0
  3. data/guides/assets/stylesheets/kindle.css +11 -0
  4. data/guides/assets/stylesheets/main.css +8 -0
  5. data/guides/rails_guides/generator.rb +87 -20
  6. data/guides/rails_guides/helpers.rb +16 -0
  7. data/guides/source/3_2_release_notes.textile +452 -0
  8. data/guides/source/_license.html.erb +2 -0
  9. data/guides/source/_welcome.html.erb +19 -0
  10. data/guides/source/active_record_querying.textile +1 -1
  11. data/guides/source/active_support_core_extensions.textile +0 -10
  12. data/guides/source/asset_pipeline.textile +69 -67
  13. data/guides/source/caching_with_rails.textile +22 -0
  14. data/guides/source/documents.yaml +153 -0
  15. data/guides/source/getting_started.textile +2 -4
  16. data/guides/source/index.html.erb +14 -175
  17. data/guides/source/kindle/KINDLE.md +26 -0
  18. data/guides/source/kindle/copyright.html.erb +1 -0
  19. data/guides/source/kindle/layout.html.erb +27 -0
  20. data/guides/source/kindle/rails_guides.opf.erb +52 -0
  21. data/guides/source/kindle/toc.html.erb +24 -0
  22. data/guides/source/kindle/toc.ncx.erb +64 -0
  23. data/guides/source/kindle/welcome.html.erb +5 -0
  24. data/guides/source/layout.html.erb +11 -47
  25. data/guides/source/migrations.textile +1 -1
  26. data/lib/rails/application/bootstrap.rb +1 -1
  27. data/lib/rails/application/route_inspector.rb +10 -1
  28. data/lib/rails/generators/app_base.rb +3 -3
  29. data/lib/rails/generators/base.rb +3 -3
  30. data/lib/rails/generators/generated_attribute.rb +57 -3
  31. data/lib/rails/generators/named_base.rb +2 -3
  32. data/lib/rails/generators/rails/migration/migration_generator.rb +1 -1
  33. data/lib/rails/generators/rails/model/model_generator.rb +1 -1
  34. data/lib/rails/generators/rails/scaffold/USAGE +15 -9
  35. data/lib/rails/generators/test_case.rb +2 -2
  36. data/lib/rails/plugin.rb +1 -0
  37. data/lib/rails/tasks/documentation.rake +1 -1
  38. data/lib/rails/test_unit/sub_test_task.rb +36 -0
  39. data/lib/rails/test_unit/testing.rake +10 -50
  40. data/lib/rails/version.rb +1 -1
  41. metadata +132 -64
@@ -64,6 +64,28 @@ end
64
64
 
65
65
  If you want a more complicated expiration scheme, you can use cache sweepers to expire cached objects when things change. This is covered in the section on Sweepers.
66
66
 
67
+ By default, page caching automatically gzips files (for example, to +products.html.gz+ if user requests +/products+) to reduce the size of data transmitted (web servers are typically configured to use a moderate compression ratio as a compromise, but since precompilation happens once, compression ratio is maximum).
68
+
69
+ Nginx is able to serve compressed content directly from disk by enabling +gzip_static+:
70
+
71
+ <plain>
72
+ location / {
73
+ gzip_static on; # to serve pre-gzipped version
74
+ }
75
+ </plain>
76
+
77
+ You can disable gzipping by setting +:gzip+ option to false (for example, if action returns image):
78
+
79
+ <ruby>
80
+ caches_page :image, :gzip => false
81
+ </ruby>
82
+
83
+ Or, you can set custom gzip compression level (level names are taken from +Zlib+ constants):
84
+
85
+ <ruby>
86
+ caches_page :image, :gzip => :best_speed
87
+ </ruby>
88
+
67
89
  NOTE: Page caching ignores all parameters. For example +/products?page=1+ will be written out to the filesystem as +products.html+ with no reference to the +page+ parameter. Thus, if someone requests +/products?page=2+ later, they will get the cached first page. A workaround for this limitation is to include the parameters in the page's path, e.g. +/productions/page/1+.
68
90
 
69
91
  INFO: Page caching runs in an after filter. Thus, invalid requests won't generate spurious cache entries as long as you halt them. Typically, a redirection in some before filter that checks request preconditions does the job.
@@ -0,0 +1,153 @@
1
+ -
2
+ name: Start Here
3
+ documents:
4
+ -
5
+ name: Getting Started with Rails
6
+ url: getting_started.html
7
+ description: Everything you need to know to install Rails and create your first application.
8
+ -
9
+ name: Models
10
+ documents:
11
+ -
12
+ name: Rails Database Migrations
13
+ url: migrations.html
14
+ description: This guide covers how you can use Active Record migrations to alter your database in a structured and organized manner.
15
+ -
16
+ name: Active Record Validations and Callbacks
17
+ url: active_record_validations_callbacks.html
18
+ description: This guide covers how you can use Active Record validations and callbacks.
19
+ -
20
+ name: Active Record Associations
21
+ url: association_basics.html
22
+ description: This guide covers all the associations provided by Active Record.
23
+ -
24
+ name: Active Record Query Interface
25
+ url: active_record_querying.html
26
+ description: This guide covers the database query interface provided by Active Record.
27
+ -
28
+ name: Views
29
+ documents:
30
+ -
31
+ name: Layouts and Rendering in Rails
32
+ url: layouts_and_rendering.html
33
+ description: This guide covers the basic layout features of Action Controller and Action View, including rendering and redirecting, using content_for blocks, and working with partials.
34
+ -
35
+ name: Action View Form Helpers
36
+ url: form_helpers.html
37
+ description: Guide to using built-in Form helpers.
38
+ -
39
+ name: Controllers
40
+ documents:
41
+ -
42
+ name: Action Controller Overview
43
+ url: action_controller_overview.html
44
+ description: This guide covers how controllers work and how they fit into the request cycle in your application. It includes sessions, filters, and cookies, data streaming, and dealing with exceptions raised by a request, among other topics.
45
+ -
46
+ name: Rails Routing from the Outside In
47
+ url: routing.html
48
+ description: This guide covers the user-facing features of Rails routing. If you want to understand how to use routing in your own Rails applications, start here.
49
+ -
50
+ name: Digging Deeper
51
+ documents:
52
+ -
53
+ name: Active Support Core Extensions
54
+ url: active_support_core_extensions.html
55
+ description: This guide documents the Ruby core extensions defined in Active Support.
56
+ -
57
+ name: Rails Internationalization API
58
+ url: i18n.html
59
+ description: This guide covers how to add internationalization to your applications. Your application will be able to translate content to different languages, change pluralization rules, use correct date formats for each country and so on.
60
+ -
61
+ name: Action Mailer Basics
62
+ url: action_mailer_basics.html
63
+ work_in_progress: true
64
+ description: This guide describes how to use Action Mailer to send and receive emails.
65
+ -
66
+ name: Testing Rails Applications
67
+ url: testing.html
68
+ work_in_progress: true
69
+ description: This is a rather comprehensive guide to doing both unit and functional tests in Rails. It covers everything from 'What is a test?' to the testing APIs. Enjoy.
70
+ -
71
+ name: Securing Rails Applications
72
+ url: security.html
73
+ description: This guide describes common security problems in web applications and how to avoid them with Rails.
74
+ -
75
+ name: Debugging Rails Applications
76
+ url: debugging_rails_applications.html
77
+ description: This guide describes how to debug Rails applications. It covers the different ways of achieving this and how to understand what is happening "behind the scenes" of your code.
78
+ -
79
+ name: Performance Testing Rails Applications
80
+ url: performance_testing.html
81
+ description: This guide covers the various ways of performance testing a Ruby on Rails application.
82
+ -
83
+ name: Configuring Rails Applications
84
+ url: configuring.html
85
+ description: This guide covers the basic configuration settings for a Rails application.
86
+ -
87
+ name: Rails Command Line Tools and Rake Tasks
88
+ url: command_line.html
89
+ description: This guide covers the command line tools and rake tasks provided by Rails.
90
+ -
91
+ name: Caching with Rails
92
+ work_in_progress: true
93
+ url: caching_with_rails.html
94
+ description: Various caching techniques provided by Rails.
95
+ -
96
+ name: Asset Pipeline
97
+ url: asset_pipeline.html
98
+ description: This guide documents the asset pipeline.
99
+ -
100
+ name: The Rails Initialization Process
101
+ work_in_progress: true
102
+ url: initialization.html
103
+ description: This guide explains the internals of the Rails initialization process as of Rails 3.1
104
+ -
105
+ name: Extending Rails
106
+ documents:
107
+ -
108
+ name: The Basics of Creating Rails Plugins
109
+ work_in_progress: true
110
+ url: plugins.html
111
+ description: This guide covers how to build a plugin to extend the functionality of Rails.
112
+ -
113
+ name: Rails on Rack
114
+ url: rails_on_rack.html
115
+ description: This guide covers Rails integration with Rack and interfacing with other Rack components.
116
+ -
117
+ name: Creating and Customizing Rails Generators
118
+ url: generators.html
119
+ description: This guide covers the process of adding a brand new generator to your extension or providing an alternative to an element of a built-in Rails generator (such as providing alternative test stubs for the scaffold generator).
120
+ -
121
+ name: Contributing to Ruby on Rails
122
+ documents:
123
+ -
124
+ name: Contributing to Ruby on Rails
125
+ url: contributing_to_ruby_on_rails.html
126
+ description: Rails is not 'somebody else's framework.' This guide covers a variety of ways that you can get involved in the ongoing development of Rails.
127
+ -
128
+ name: API Documentation Guidelines
129
+ url: api_documentation_guidelines.html
130
+ description: This guide documents the Ruby on Rails API documentation guidelines.
131
+ -
132
+ name: Ruby on Rails Guides Guidelines
133
+ url: ruby_on_rails_guides_guidelines.html
134
+ description: This guide documents the Ruby on Rails guides guidelines.
135
+ -
136
+ name: Release Notes
137
+ documents:
138
+ -
139
+ name: Ruby on Rails 3.1 Release Notes
140
+ url: 3_1_release_notes.html
141
+ description: Release notes for Rails 3.1.
142
+ -
143
+ name: Ruby on Rails 3.0 Release Notes
144
+ url: 3_0_release_notes.html
145
+ description: Release notes for Rails 3.0.
146
+ -
147
+ name: Ruby on Rails 2.3 Release Notes
148
+ url: 2_3_release_notes.html
149
+ description: Release notes for Rails 2.3.
150
+ -
151
+ name: Ruby on Rails 2.2 Release Notes
152
+ url: 2_2_release_notes.html
153
+ description: Release notes for Rails 2.2.
@@ -814,8 +814,7 @@ and links. A few things to note in the view:
814
814
 
815
815
  NOTE. In previous versions of Rails, you had to use +&lt;%=h post.name %&gt;+ so
816
816
  that any HTML would be escaped before being inserted into the page. In Rails
817
- 3.0+, this is now the default. To get unescaped HTML, you now use +&lt;%= raw
818
- post.name %&gt;+.
817
+ 3 and above, this is now the default. To get unescaped HTML, you now use <tt>&lt;%= raw post.name %&gt;</tt>.
819
818
 
820
819
  TIP: For more details on the rendering process, see "Layouts and Rendering in
821
820
  Rails":layouts_and_rendering.html.
@@ -828,7 +827,7 @@ Rails renders a view to the browser, it does so by putting the view's HTML into
828
827
  a layout's HTML. In previous versions of Rails, the +rails generate scaffold+
829
828
  command would automatically create a controller specific layout, like
830
829
  +app/views/layouts/posts.html.erb+, for the posts controller. However this has
831
- been changed in Rails 3.0+. An application specific +layout+ is used for all the
830
+ been changed in Rails 3. An application specific +layout+ is used for all the
832
831
  controllers and can be found in +app/views/layouts/application.html.erb+. Open
833
832
  this layout in your editor and modify the +body+ tag to include the style directive
834
833
  below:
@@ -1873,7 +1872,6 @@ free to consult these support resources:
1873
1872
  * The "Ruby on Rails Tutorial":http://railstutorial.org/book
1874
1873
  * The "Ruby on Rails mailing list":http://groups.google.com/group/rubyonrails-talk
1875
1874
  * The "#rubyonrails":irc://irc.freenode.net/#rubyonrails channel on irc.freenode.net
1876
- * The "Rails Wiki":http://wiki.rubyonrails.org/
1877
1875
 
1878
1876
  Rails also comes with built-in help that you can generate using the rake command-line utility:
1879
1877
 
@@ -3,189 +3,28 @@ Ruby on Rails Guides
3
3
  <% end %>
4
4
 
5
5
  <% content_for :header_section do %>
6
- <h2>Ruby on Rails Guides (<%= ENV['RAILS_VERSION'] || 'edge' %>)</h2>
7
-
8
- <% if @edge %>
9
- <p>
10
- These are <b>Edge Guides</b>, based on the current
11
- <a href="https://github.com/rails/rails/tree/master">master branch</a>.
12
- </p>
13
- <p>
14
- If you are looking for the ones for the stable version please check
15
- <a href="http://guides.rubyonrails.org">http://guides.rubyonrails.org</a> instead.
16
- </p>
17
- <% else %>
18
- <p>
19
- These are the new guides for Rails 3. The guides for Rails 2.3 are still available
20
- at <a href="http://guides.rubyonrails.org/v2.3.11/">http://guides.rubyonrails.org/v2.3.11/</a>.
21
- </p>
22
- <% end %>
23
- <p>
24
- These guides are designed to make you immediately productive with Rails,
25
- and to help you understand how all of the pieces fit together.
26
- </p>
27
-
6
+ <%= render 'welcome' %>
28
7
  <% end %>
29
8
 
30
9
  <% content_for :index_section do %>
31
10
  <div id="subCol">
32
11
  <dl>
12
+ <dd class="kindle">Rails Guides are also available for the <%= link_to 'Kindle', 'https://kindle.amazon.com' %>
13
+ and <%= link_to 'Free Kindle Reading Apps', 'http://www.amazon.com/gp/kindle/kcp' %> for the iPad,
14
+ iPhone, Mac, Android, etc. Download them from <%= link_to 'here', @mobi %>.
15
+ </dd>
33
16
  <dd class="work-in-progress">Guides marked with this icon are currently being worked on. While they might still be useful to you, they may contain incomplete information and even errors. You can help by reviewing them and posting your comments and corrections to the author.</dd>
34
17
  </dl>
35
18
  </div>
36
19
  <% end %>
37
20
 
38
- <h3>Start Here</h3>
39
-
40
- <dl>
41
- <%= guide('Getting Started with Rails', 'getting_started.html') do %>
42
- <p>Everything you need to know to install Rails and create your first application.</p>
43
- <% end %>
44
- </dl>
45
-
46
- <h3>Models</h3>
47
-
48
- <dl>
49
- <%= guide("Rails Database Migrations", 'migrations.html') do %>
50
- <p>This guide covers how you can use Active Record migrations to alter your database in a structured and organized manner.</p>
51
- <% end %>
52
-
53
- <%= guide("Active Record Validations and Callbacks", 'active_record_validations_callbacks.html') do %>
54
- <p>This guide covers how you can use Active Record validations and callbacks.</p>
55
- <% end %>
56
-
57
- <%= guide("Active Record Associations", 'association_basics.html') do %>
58
- <p>This guide covers all the associations provided by Active Record.</p>
59
- <% end %>
60
-
61
- <%= guide("Active Record Query Interface", 'active_record_querying.html') do %>
62
- <p>This guide covers the database query interface provided by Active Record.</p>
63
- <% end %>
64
- </dl>
65
-
66
- <h3>Views</h3>
67
-
68
- <dl>
69
- <%= guide("Layouts and Rendering in Rails", 'layouts_and_rendering.html') do %>
70
- <p>This guide covers the basic layout features of Action Controller and Action View, including rendering and redirecting, using content_for blocks, and working with partials.</p>
71
- <% end %>
72
-
73
- <%= guide("Action View Form Helpers", 'form_helpers.html', :work_in_progress => true) do %>
74
- <p>Guide to using built-in Form helpers.</p>
75
- <% end %>
76
- </dl>
77
-
78
- <h3>Controllers</h3>
79
-
80
- <dl>
81
- <%= guide("Action Controller Overview", 'action_controller_overview.html') do %>
82
- <p>This guide covers how controllers work and how they fit into the request cycle in your application. It includes sessions, filters, and cookies, data streaming, and dealing with exceptions raised by a request, among other topics.</p>
83
- <% end %>
84
-
85
- <%= guide("Rails Routing from the Outside In", 'routing.html') do %>
86
- <p>This guide covers the user-facing features of Rails routing. If you want to understand how to use routing in your own Rails applications, start here.</p>
87
- <% end %>
88
- </dl>
89
-
90
- <h3>Digging Deeper</h3>
91
-
92
- <dl>
93
-
94
- <%= guide("Active Support Core Extensions", 'active_support_core_extensions.html') do %>
95
- <p>This guide documents the Ruby core extensions defined in Active Support.</p>
96
- <% end %>
97
-
98
- <%= guide("Rails Internationalization API", 'i18n.html') do %>
99
- <p>This guide covers how to add internationalization to your applications. Your application will be able to translate content to different languages, change pluralization rules, use correct date formats for each country and so on.</p>
100
- <% end %>
101
-
102
- <%= guide("Action Mailer Basics", 'action_mailer_basics.html', :work_in_progress => true) do %>
103
- <p>This guide describes how to use Action Mailer to send and receive emails.</p>
104
- <% end %>
105
-
106
- <%= guide("Testing Rails Applications", 'testing.html', :work_in_progress => true) do %>
107
- <p>This is a rather comprehensive guide to doing both unit and functional tests in Rails. It covers everything from &quot;What is a test?&quot; to the testing APIs. Enjoy.</p>
108
- <% end %>
109
-
110
- <%= guide("Securing Rails Applications", 'security.html') do %>
111
- <p>This guide describes common security problems in web applications and how to avoid them with Rails.</p>
112
- <% end %>
113
-
114
- <%= guide("Debugging Rails Applications", 'debugging_rails_applications.html') do %>
115
- <p>This guide describes how to debug Rails applications. It covers the different ways of achieving this and how to understand what is happening "behind the scenes" of your code.</p>
116
- <% end %>
117
-
118
- <%= guide("Performance Testing Rails Applications", 'performance_testing.html') do %>
119
- <p>This guide covers the various ways of performance testing a Ruby on Rails application.</p>
120
- <% end %>
121
-
122
- <%= guide("Configuring Rails Applications", 'configuring.html') do %>
123
- <p>This guide covers the basic configuration settings for a Rails application.</p>
124
- <% end %>
125
-
126
- <%= guide("Rails Command Line Tools and Rake tasks", 'command_line.html') do %>
127
- <p>This guide covers the command line tools and rake tasks provided by Rails.</p>
128
- <% end %>
129
-
130
- <%= guide("Caching with Rails", 'caching_with_rails.html', :work_in_progress => true) do %>
131
- <p>Various caching techniques provided by Rails.</p>
132
- <% end %>
133
-
134
- <%= guide('Asset Pipeline', 'asset_pipeline.html') do %>
135
- <p>This guide documents the asset pipeline.</p>
136
- <% end %>
137
- </dl>
138
-
139
- <h3>Extending Rails</h3>
140
-
141
- <dl>
142
- <%= guide("The Basics of Creating Rails Plugins", 'plugins.html', :work_in_progress => true) do %>
143
- <p>This guide covers how to build a plugin to extend the functionality of Rails.</p>
144
- <% end %>
145
-
146
- <%= guide("Rails on Rack", 'rails_on_rack.html') do %>
147
- <p>This guide covers Rails integration with Rack and interfacing with other Rack components.</p>
148
- <% end %>
149
-
150
- <%= guide("Creating and Customizing Rails Generators", 'generators.html') do %>
151
- <p>This guide covers the process of adding a brand new generator to your extension
152
- or providing an alternative to an element of a built-in Rails generator (such as
153
- providing alternative test stubs for the scaffold generator).</p>
154
- <% end %>
155
- </dl>
156
-
157
- <h3>Contributing to Ruby on Rails</h3>
158
-
159
- <dl>
160
- <%= guide("Contributing to Ruby on Rails", 'contributing_to_ruby_on_rails.html') do %>
161
- <p>Rails is not &quot;somebody else's framework.&quot; This guide covers a variety of ways that you can get involved in the ongoing development of Rails.</p>
162
- <% end %>
163
-
164
- <%= guide('API Documentation Guidelines', 'api_documentation_guidelines.html') do %>
165
- <p>This guide documents the Ruby on Rails API documentation guidelines.</p>
166
- <% end %>
167
-
168
- <%= guide('Ruby on Rails Guides Guidelines', 'ruby_on_rails_guides_guidelines.html') do %>
169
- <p>This guide documents the Ruby on Rails guides guidelines.</p>
170
- <% end %>
171
- </dl>
172
-
173
- <h3>Release Notes</h3>
174
-
175
- <dl>
176
- <%= guide("Ruby on Rails 3.1 Release Notes", '3_1_release_notes.html') do %>
177
- <p>Release notes for Rails 3.1.</p>
178
- <% end %>
179
-
180
- <%= guide("Ruby on Rails 3.0 Release Notes", '3_0_release_notes.html') do %>
181
- <p>Release notes for Rails 3.0.</p>
182
- <% end %>
183
-
184
- <%= guide("Ruby on Rails 2.3 Release Notes", '2_3_release_notes.html') do %>
185
- <p>Release notes for Rails 2.3.</p>
186
- <% end %>
187
-
188
- <%= guide("Ruby on Rails 2.2 Release Notes", '2_2_release_notes.html') do %>
189
- <p>Release notes for Rails 2.2.</p>
21
+ <% documents_by_section.each do |section| %>
22
+ <h3><%= section['name'] %></h3>
23
+ <dl>
24
+ <% section['documents'].each do |document| %>
25
+ <%= guide(document['name'], document['url'], :work_in_progress => document['work_in_progress']) do %>
26
+ <p><%= document['description'] %></p>
27
+ <% end %>
28
+ <% end %>
29
+ </dl>
190
30
  <% end %>
191
- </dl>
@@ -0,0 +1,26 @@
1
+ # Rails Guides on the Kindle
2
+
3
+
4
+ ## Synopsis
5
+
6
+ 1. Obtain `kindlegen` from the link below and put the binary in your path
7
+ 2. Run `KINDLE=1 rake generate_guides` to generate the guides and compile the `.mobi` file
8
+ 3. Copy `output/kindle/rails_guides.mobi` to your Kindle
9
+
10
+ ## Resources
11
+
12
+ * [StackOverflow: Kindle Periodical Format](http://stackoverflow.com/questions/5379565/kindle-periodical-format)
13
+ * Example Periodical [.ncx](https://gist.github.com/808c971ed087b839d462) and [.opf](https://gist.github.com/d6349aa8488eca2ee6d0)
14
+ * [Kindle Publishing guidelines](http://kindlegen.s3.amazonaws.com/AmazonKindlePublishingGuidelines.pdf)
15
+ * [KindleGen & Kindle Previewer](http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000234621)
16
+
17
+ ## TODO
18
+
19
+ ### Post release
20
+
21
+ * Integrate generated Kindle document in to published HTML guides
22
+ * Tweak heading styles (most docs use h3/h4/h5, which end up being smaller than the text under it)
23
+ * Tweak table styles (smaller text? Many of the tables are unusable on a Kindle in portrait mode)
24
+ * Have the HTML/XML TOC 'drill down' into the TOCs of the individual guides
25
+ * `.epub` generation.
26
+
@@ -0,0 +1 @@
1
+ <%= render 'license' %>
@@ -0,0 +1,27 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7
+
8
+ <title><%= yield(:page_title) || 'Ruby on Rails Guides' %></title>
9
+
10
+ <link rel="stylesheet" type="text/css" href="stylesheets/kindle.css" />
11
+
12
+ </head>
13
+ <body class="guide">
14
+
15
+ <% if content_for? :header_section %>
16
+ <%= yield :header_section %>
17
+ <div class="pagebreak">
18
+ <% end %>
19
+
20
+ <% if content_for? :index_section %>
21
+ <%= yield :index_section %>
22
+ <div class="pagebreak">
23
+ <% end %>
24
+
25
+ <%= yield.html_safe %>
26
+ </body>
27
+ </html>