aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/assets
diff options
context:
space:
mode:
Diffstat (limited to 'railties/guides/assets')
-rw-r--r--railties/guides/assets/images/belongs_to.pngbin0 -> 34017 bytes
-rw-r--r--railties/guides/assets/images/book_icon.gifbin0 -> 337 bytes
-rw-r--r--railties/guides/assets/images/bullet.gifbin0 -> 60 bytes
-rw-r--r--railties/guides/assets/images/challenge.pngbin0 -> 54134 bytes
-rw-r--r--railties/guides/assets/images/chapters_icon.gifbin0 -> 628 bytes
-rw-r--r--railties/guides/assets/images/check_bullet.gifbin0 -> 384 bytes
-rw-r--r--railties/guides/assets/images/credits_pic_blank.gifbin0 -> 613 bytes
-rw-r--r--railties/guides/assets/images/csrf.pngbin0 -> 41996 bytes
-rw-r--r--railties/guides/assets/images/customized_error_messages.pngbin0 -> 5055 bytes
-rw-r--r--railties/guides/assets/images/edge_badge.pngbin0 -> 7945 bytes
-rw-r--r--railties/guides/assets/images/error_messages.pngbin0 -> 14645 bytes
-rw-r--r--railties/guides/assets/images/feature_tile.gifbin0 -> 43 bytes
-rw-r--r--railties/guides/assets/images/footer_tile.gifbin0 -> 44 bytes
-rw-r--r--railties/guides/assets/images/fxn.pngbin0 -> 20664 bytes
-rw-r--r--railties/guides/assets/images/grey_bullet.gifbin0 -> 45 bytes
-rw-r--r--railties/guides/assets/images/habtm.pngbin0 -> 63801 bytes
-rw-r--r--railties/guides/assets/images/has_many.pngbin0 -> 38582 bytes
-rw-r--r--railties/guides/assets/images/has_many_through.pngbin0 -> 100220 bytes
-rw-r--r--railties/guides/assets/images/has_one.pngbin0 -> 39022 bytes
-rw-r--r--railties/guides/assets/images/has_one_through.pngbin0 -> 92594 bytes
-rw-r--r--railties/guides/assets/images/header_backdrop.pngbin0 -> 882 bytes
-rw-r--r--railties/guides/assets/images/header_tile.gifbin0 -> 44 bytes
-rw-r--r--railties/guides/assets/images/i18n/demo_localized_pirate.pngbin0 -> 15027 bytes
-rw-r--r--railties/guides/assets/images/i18n/demo_translated_en.pngbin0 -> 12057 bytes
-rw-r--r--railties/guides/assets/images/i18n/demo_translated_pirate.pngbin0 -> 13392 bytes
-rw-r--r--railties/guides/assets/images/i18n/demo_translation_missing.pngbin0 -> 13143 bytes
-rw-r--r--railties/guides/assets/images/i18n/demo_untranslated.pngbin0 -> 11925 bytes
-rw-r--r--railties/guides/assets/images/icons/README5
-rw-r--r--railties/guides/assets/images/icons/callouts/1.pngbin0 -> 329 bytes
-rw-r--r--railties/guides/assets/images/icons/callouts/10.pngbin0 -> 361 bytes
-rw-r--r--railties/guides/assets/images/icons/callouts/11.pngbin0 -> 565 bytes
-rw-r--r--railties/guides/assets/images/icons/callouts/12.pngbin0 -> 617 bytes
-rw-r--r--railties/guides/assets/images/icons/callouts/13.pngbin0 -> 623 bytes
-rw-r--r--railties/guides/assets/images/icons/callouts/14.pngbin0 -> 411 bytes
-rw-r--r--railties/guides/assets/images/icons/callouts/15.pngbin0 -> 640 bytes
-rw-r--r--railties/guides/assets/images/icons/callouts/2.pngbin0 -> 353 bytes
-rw-r--r--railties/guides/assets/images/icons/callouts/3.pngbin0 -> 350 bytes
-rw-r--r--railties/guides/assets/images/icons/callouts/4.pngbin0 -> 345 bytes
-rw-r--r--railties/guides/assets/images/icons/callouts/5.pngbin0 -> 348 bytes
-rw-r--r--railties/guides/assets/images/icons/callouts/6.pngbin0 -> 355 bytes
-rw-r--r--railties/guides/assets/images/icons/callouts/7.pngbin0 -> 344 bytes
-rw-r--r--railties/guides/assets/images/icons/callouts/8.pngbin0 -> 357 bytes
-rw-r--r--railties/guides/assets/images/icons/callouts/9.pngbin0 -> 357 bytes
-rw-r--r--railties/guides/assets/images/icons/caution.pngbin0 -> 2554 bytes
-rw-r--r--railties/guides/assets/images/icons/example.pngbin0 -> 2354 bytes
-rw-r--r--railties/guides/assets/images/icons/home.pngbin0 -> 1340 bytes
-rw-r--r--railties/guides/assets/images/icons/important.pngbin0 -> 2657 bytes
-rw-r--r--railties/guides/assets/images/icons/next.pngbin0 -> 1302 bytes
-rw-r--r--railties/guides/assets/images/icons/note.pngbin0 -> 2730 bytes
-rw-r--r--railties/guides/assets/images/icons/prev.pngbin0 -> 1348 bytes
-rw-r--r--railties/guides/assets/images/icons/tip.pngbin0 -> 2602 bytes
-rw-r--r--railties/guides/assets/images/icons/up.pngbin0 -> 1320 bytes
-rw-r--r--railties/guides/assets/images/icons/warning.pngbin0 -> 2828 bytes
-rw-r--r--railties/guides/assets/images/nav_arrow.gifbin0 -> 427 bytes
-rw-r--r--railties/guides/assets/images/polymorphic.pngbin0 -> 85248 bytes
-rw-r--r--railties/guides/assets/images/posts_index.pngbin0 -> 60846 bytes
-rw-r--r--railties/guides/assets/images/rails_guides_logo.gifbin0 -> 5114 bytes
-rw-r--r--railties/guides/assets/images/rails_logo_remix.gifbin0 -> 8533 bytes
-rw-r--r--railties/guides/assets/images/rails_welcome.pngbin0 -> 106417 bytes
-rw-r--r--railties/guides/assets/images/session_fixation.pngbin0 -> 47860 bytes
-rw-r--r--railties/guides/assets/images/tab_grey.gifbin0 -> 4924 bytes
-rw-r--r--railties/guides/assets/images/tab_info.gifbin0 -> 4762 bytes
-rw-r--r--railties/guides/assets/images/tab_note.gifbin0 -> 4807 bytes
-rw-r--r--railties/guides/assets/images/tab_red.gifbin0 -> 4753 bytes
-rw-r--r--railties/guides/assets/images/tab_yellow.gifbin0 -> 4759 bytes
-rw-r--r--railties/guides/assets/images/tab_yellow.pngbin0 -> 1611 bytes
-rw-r--r--railties/guides/assets/images/validation_error_messages.pngbin0 -> 1107 bytes
-rwxr-xr-xrailties/guides/assets/javascripts/code_highlighter.js188
-rwxr-xr-xrailties/guides/assets/javascripts/guides.js7
-rw-r--r--railties/guides/assets/javascripts/highlighters.js90
-rw-r--r--railties/guides/assets/stylesheets/main.css452
-rwxr-xr-xrailties/guides/assets/stylesheets/print.css52
-rwxr-xr-xrailties/guides/assets/stylesheets/reset.css43
-rwxr-xr-xrailties/guides/assets/stylesheets/style.css13
-rw-r--r--railties/guides/assets/stylesheets/syntax.css31
75 files changed, 881 insertions, 0 deletions
diff --git a/railties/guides/assets/images/belongs_to.png b/railties/guides/assets/images/belongs_to.png
new file mode 100644
index 0000000000..44243edbca
--- /dev/null
+++ b/railties/guides/assets/images/belongs_to.png
Binary files differ
diff --git a/railties/guides/assets/images/book_icon.gif b/railties/guides/assets/images/book_icon.gif
new file mode 100644
index 0000000000..c81d5db520
--- /dev/null
+++ b/railties/guides/assets/images/book_icon.gif
Binary files differ
diff --git a/railties/guides/assets/images/bullet.gif b/railties/guides/assets/images/bullet.gif
new file mode 100644
index 0000000000..95a26364a4
--- /dev/null
+++ b/railties/guides/assets/images/bullet.gif
Binary files differ
diff --git a/railties/guides/assets/images/challenge.png b/railties/guides/assets/images/challenge.png
new file mode 100644
index 0000000000..d163748640
--- /dev/null
+++ b/railties/guides/assets/images/challenge.png
Binary files differ
diff --git a/railties/guides/assets/images/chapters_icon.gif b/railties/guides/assets/images/chapters_icon.gif
new file mode 100644
index 0000000000..06fb415f4a
--- /dev/null
+++ b/railties/guides/assets/images/chapters_icon.gif
Binary files differ
diff --git a/railties/guides/assets/images/check_bullet.gif b/railties/guides/assets/images/check_bullet.gif
new file mode 100644
index 0000000000..1fcfeba250
--- /dev/null
+++ b/railties/guides/assets/images/check_bullet.gif
Binary files differ
diff --git a/railties/guides/assets/images/credits_pic_blank.gif b/railties/guides/assets/images/credits_pic_blank.gif
new file mode 100644
index 0000000000..f6f654fc65
--- /dev/null
+++ b/railties/guides/assets/images/credits_pic_blank.gif
Binary files differ
diff --git a/railties/guides/assets/images/csrf.png b/railties/guides/assets/images/csrf.png
new file mode 100644
index 0000000000..ab73baafe8
--- /dev/null
+++ b/railties/guides/assets/images/csrf.png
Binary files differ
diff --git a/railties/guides/assets/images/customized_error_messages.png b/railties/guides/assets/images/customized_error_messages.png
new file mode 100644
index 0000000000..fa676991e3
--- /dev/null
+++ b/railties/guides/assets/images/customized_error_messages.png
Binary files differ
diff --git a/railties/guides/assets/images/edge_badge.png b/railties/guides/assets/images/edge_badge.png
new file mode 100644
index 0000000000..cddd46c4b8
--- /dev/null
+++ b/railties/guides/assets/images/edge_badge.png
Binary files differ
diff --git a/railties/guides/assets/images/error_messages.png b/railties/guides/assets/images/error_messages.png
new file mode 100644
index 0000000000..428892194a
--- /dev/null
+++ b/railties/guides/assets/images/error_messages.png
Binary files differ
diff --git a/railties/guides/assets/images/feature_tile.gif b/railties/guides/assets/images/feature_tile.gif
new file mode 100644
index 0000000000..75469361db
--- /dev/null
+++ b/railties/guides/assets/images/feature_tile.gif
Binary files differ
diff --git a/railties/guides/assets/images/footer_tile.gif b/railties/guides/assets/images/footer_tile.gif
new file mode 100644
index 0000000000..bb33fc1ff0
--- /dev/null
+++ b/railties/guides/assets/images/footer_tile.gif
Binary files differ
diff --git a/railties/guides/assets/images/fxn.png b/railties/guides/assets/images/fxn.png
new file mode 100644
index 0000000000..9b531ee584
--- /dev/null
+++ b/railties/guides/assets/images/fxn.png
Binary files differ
diff --git a/railties/guides/assets/images/grey_bullet.gif b/railties/guides/assets/images/grey_bullet.gif
new file mode 100644
index 0000000000..e75e8e93a1
--- /dev/null
+++ b/railties/guides/assets/images/grey_bullet.gif
Binary files differ
diff --git a/railties/guides/assets/images/habtm.png b/railties/guides/assets/images/habtm.png
new file mode 100644
index 0000000000..fea78b0b5c
--- /dev/null
+++ b/railties/guides/assets/images/habtm.png
Binary files differ
diff --git a/railties/guides/assets/images/has_many.png b/railties/guides/assets/images/has_many.png
new file mode 100644
index 0000000000..6cff58460d
--- /dev/null
+++ b/railties/guides/assets/images/has_many.png
Binary files differ
diff --git a/railties/guides/assets/images/has_many_through.png b/railties/guides/assets/images/has_many_through.png
new file mode 100644
index 0000000000..85d7599925
--- /dev/null
+++ b/railties/guides/assets/images/has_many_through.png
Binary files differ
diff --git a/railties/guides/assets/images/has_one.png b/railties/guides/assets/images/has_one.png
new file mode 100644
index 0000000000..a70ddaaa86
--- /dev/null
+++ b/railties/guides/assets/images/has_one.png
Binary files differ
diff --git a/railties/guides/assets/images/has_one_through.png b/railties/guides/assets/images/has_one_through.png
new file mode 100644
index 0000000000..89a7617a30
--- /dev/null
+++ b/railties/guides/assets/images/has_one_through.png
Binary files differ
diff --git a/railties/guides/assets/images/header_backdrop.png b/railties/guides/assets/images/header_backdrop.png
new file mode 100644
index 0000000000..ff2982175e
--- /dev/null
+++ b/railties/guides/assets/images/header_backdrop.png
Binary files differ
diff --git a/railties/guides/assets/images/header_tile.gif b/railties/guides/assets/images/header_tile.gif
new file mode 100644
index 0000000000..e2c878d492
--- /dev/null
+++ b/railties/guides/assets/images/header_tile.gif
Binary files differ
diff --git a/railties/guides/assets/images/i18n/demo_localized_pirate.png b/railties/guides/assets/images/i18n/demo_localized_pirate.png
new file mode 100644
index 0000000000..9134709573
--- /dev/null
+++ b/railties/guides/assets/images/i18n/demo_localized_pirate.png
Binary files differ
diff --git a/railties/guides/assets/images/i18n/demo_translated_en.png b/railties/guides/assets/images/i18n/demo_translated_en.png
new file mode 100644
index 0000000000..ecdd878d38
--- /dev/null
+++ b/railties/guides/assets/images/i18n/demo_translated_en.png
Binary files differ
diff --git a/railties/guides/assets/images/i18n/demo_translated_pirate.png b/railties/guides/assets/images/i18n/demo_translated_pirate.png
new file mode 100644
index 0000000000..41c580923a
--- /dev/null
+++ b/railties/guides/assets/images/i18n/demo_translated_pirate.png
Binary files differ
diff --git a/railties/guides/assets/images/i18n/demo_translation_missing.png b/railties/guides/assets/images/i18n/demo_translation_missing.png
new file mode 100644
index 0000000000..af9e2d0427
--- /dev/null
+++ b/railties/guides/assets/images/i18n/demo_translation_missing.png
Binary files differ
diff --git a/railties/guides/assets/images/i18n/demo_untranslated.png b/railties/guides/assets/images/i18n/demo_untranslated.png
new file mode 100644
index 0000000000..3603f43463
--- /dev/null
+++ b/railties/guides/assets/images/i18n/demo_untranslated.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/README b/railties/guides/assets/images/icons/README
new file mode 100644
index 0000000000..f12b2a730c
--- /dev/null
+++ b/railties/guides/assets/images/icons/README
@@ -0,0 +1,5 @@
+Replaced the plain DocBook XSL admonition icons with Jimmac's DocBook
+icons (http://jimmac.musichall.cz/ikony.php3). I dropped transparency
+from the Jimmac icons to get round MS IE and FOP PNG incompatibilies.
+
+Stuart Rackham
diff --git a/railties/guides/assets/images/icons/callouts/1.png b/railties/guides/assets/images/icons/callouts/1.png
new file mode 100644
index 0000000000..7d473430b7
--- /dev/null
+++ b/railties/guides/assets/images/icons/callouts/1.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/callouts/10.png b/railties/guides/assets/images/icons/callouts/10.png
new file mode 100644
index 0000000000..997bbc8246
--- /dev/null
+++ b/railties/guides/assets/images/icons/callouts/10.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/callouts/11.png b/railties/guides/assets/images/icons/callouts/11.png
new file mode 100644
index 0000000000..ce47dac3f5
--- /dev/null
+++ b/railties/guides/assets/images/icons/callouts/11.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/callouts/12.png b/railties/guides/assets/images/icons/callouts/12.png
new file mode 100644
index 0000000000..31daf4e2f2
--- /dev/null
+++ b/railties/guides/assets/images/icons/callouts/12.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/callouts/13.png b/railties/guides/assets/images/icons/callouts/13.png
new file mode 100644
index 0000000000..14021a89c2
--- /dev/null
+++ b/railties/guides/assets/images/icons/callouts/13.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/callouts/14.png b/railties/guides/assets/images/icons/callouts/14.png
new file mode 100644
index 0000000000..64014b75fe
--- /dev/null
+++ b/railties/guides/assets/images/icons/callouts/14.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/callouts/15.png b/railties/guides/assets/images/icons/callouts/15.png
new file mode 100644
index 0000000000..0d65765fcf
--- /dev/null
+++ b/railties/guides/assets/images/icons/callouts/15.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/callouts/2.png b/railties/guides/assets/images/icons/callouts/2.png
new file mode 100644
index 0000000000..5d09341b2f
--- /dev/null
+++ b/railties/guides/assets/images/icons/callouts/2.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/callouts/3.png b/railties/guides/assets/images/icons/callouts/3.png
new file mode 100644
index 0000000000..ef7b700471
--- /dev/null
+++ b/railties/guides/assets/images/icons/callouts/3.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/callouts/4.png b/railties/guides/assets/images/icons/callouts/4.png
new file mode 100644
index 0000000000..adb8364eb5
--- /dev/null
+++ b/railties/guides/assets/images/icons/callouts/4.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/callouts/5.png b/railties/guides/assets/images/icons/callouts/5.png
new file mode 100644
index 0000000000..4d7eb46002
--- /dev/null
+++ b/railties/guides/assets/images/icons/callouts/5.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/callouts/6.png b/railties/guides/assets/images/icons/callouts/6.png
new file mode 100644
index 0000000000..0ba694af6c
--- /dev/null
+++ b/railties/guides/assets/images/icons/callouts/6.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/callouts/7.png b/railties/guides/assets/images/icons/callouts/7.png
new file mode 100644
index 0000000000..472e96f8ac
--- /dev/null
+++ b/railties/guides/assets/images/icons/callouts/7.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/callouts/8.png b/railties/guides/assets/images/icons/callouts/8.png
new file mode 100644
index 0000000000..5e60973c21
--- /dev/null
+++ b/railties/guides/assets/images/icons/callouts/8.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/callouts/9.png b/railties/guides/assets/images/icons/callouts/9.png
new file mode 100644
index 0000000000..a0676d26cc
--- /dev/null
+++ b/railties/guides/assets/images/icons/callouts/9.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/caution.png b/railties/guides/assets/images/icons/caution.png
new file mode 100644
index 0000000000..cb9d5ea0df
--- /dev/null
+++ b/railties/guides/assets/images/icons/caution.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/example.png b/railties/guides/assets/images/icons/example.png
new file mode 100644
index 0000000000..bba1c0010d
--- /dev/null
+++ b/railties/guides/assets/images/icons/example.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/home.png b/railties/guides/assets/images/icons/home.png
new file mode 100644
index 0000000000..37a5231bac
--- /dev/null
+++ b/railties/guides/assets/images/icons/home.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/important.png b/railties/guides/assets/images/icons/important.png
new file mode 100644
index 0000000000..1096c23295
--- /dev/null
+++ b/railties/guides/assets/images/icons/important.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/next.png b/railties/guides/assets/images/icons/next.png
new file mode 100644
index 0000000000..64e126bdda
--- /dev/null
+++ b/railties/guides/assets/images/icons/next.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/note.png b/railties/guides/assets/images/icons/note.png
new file mode 100644
index 0000000000..841820f7c4
--- /dev/null
+++ b/railties/guides/assets/images/icons/note.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/prev.png b/railties/guides/assets/images/icons/prev.png
new file mode 100644
index 0000000000..3e8f12fe24
--- /dev/null
+++ b/railties/guides/assets/images/icons/prev.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/tip.png b/railties/guides/assets/images/icons/tip.png
new file mode 100644
index 0000000000..a3a029d898
--- /dev/null
+++ b/railties/guides/assets/images/icons/tip.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/up.png b/railties/guides/assets/images/icons/up.png
new file mode 100644
index 0000000000..2db1ce62fa
--- /dev/null
+++ b/railties/guides/assets/images/icons/up.png
Binary files differ
diff --git a/railties/guides/assets/images/icons/warning.png b/railties/guides/assets/images/icons/warning.png
new file mode 100644
index 0000000000..0b0c419df2
--- /dev/null
+++ b/railties/guides/assets/images/icons/warning.png
Binary files differ
diff --git a/railties/guides/assets/images/nav_arrow.gif b/railties/guides/assets/images/nav_arrow.gif
new file mode 100644
index 0000000000..c4f57658d7
--- /dev/null
+++ b/railties/guides/assets/images/nav_arrow.gif
Binary files differ
diff --git a/railties/guides/assets/images/polymorphic.png b/railties/guides/assets/images/polymorphic.png
new file mode 100644
index 0000000000..ff2fd9f76d
--- /dev/null
+++ b/railties/guides/assets/images/polymorphic.png
Binary files differ
diff --git a/railties/guides/assets/images/posts_index.png b/railties/guides/assets/images/posts_index.png
new file mode 100644
index 0000000000..f6cd2f9b80
--- /dev/null
+++ b/railties/guides/assets/images/posts_index.png
Binary files differ
diff --git a/railties/guides/assets/images/rails_guides_logo.gif b/railties/guides/assets/images/rails_guides_logo.gif
new file mode 100644
index 0000000000..a24683a34e
--- /dev/null
+++ b/railties/guides/assets/images/rails_guides_logo.gif
Binary files differ
diff --git a/railties/guides/assets/images/rails_logo_remix.gif b/railties/guides/assets/images/rails_logo_remix.gif
new file mode 100644
index 0000000000..58960ee4f9
--- /dev/null
+++ b/railties/guides/assets/images/rails_logo_remix.gif
Binary files differ
diff --git a/railties/guides/assets/images/rails_welcome.png b/railties/guides/assets/images/rails_welcome.png
new file mode 100644
index 0000000000..0e02cf5a8c
--- /dev/null
+++ b/railties/guides/assets/images/rails_welcome.png
Binary files differ
diff --git a/railties/guides/assets/images/session_fixation.png b/railties/guides/assets/images/session_fixation.png
new file mode 100644
index 0000000000..6b084508db
--- /dev/null
+++ b/railties/guides/assets/images/session_fixation.png
Binary files differ
diff --git a/railties/guides/assets/images/tab_grey.gif b/railties/guides/assets/images/tab_grey.gif
new file mode 100644
index 0000000000..e9680b7136
--- /dev/null
+++ b/railties/guides/assets/images/tab_grey.gif
Binary files differ
diff --git a/railties/guides/assets/images/tab_info.gif b/railties/guides/assets/images/tab_info.gif
new file mode 100644
index 0000000000..458fea9a61
--- /dev/null
+++ b/railties/guides/assets/images/tab_info.gif
Binary files differ
diff --git a/railties/guides/assets/images/tab_note.gif b/railties/guides/assets/images/tab_note.gif
new file mode 100644
index 0000000000..1d5c171ed6
--- /dev/null
+++ b/railties/guides/assets/images/tab_note.gif
Binary files differ
diff --git a/railties/guides/assets/images/tab_red.gif b/railties/guides/assets/images/tab_red.gif
new file mode 100644
index 0000000000..daf140b5a8
--- /dev/null
+++ b/railties/guides/assets/images/tab_red.gif
Binary files differ
diff --git a/railties/guides/assets/images/tab_yellow.gif b/railties/guides/assets/images/tab_yellow.gif
new file mode 100644
index 0000000000..dc961c99dd
--- /dev/null
+++ b/railties/guides/assets/images/tab_yellow.gif
Binary files differ
diff --git a/railties/guides/assets/images/tab_yellow.png b/railties/guides/assets/images/tab_yellow.png
new file mode 100644
index 0000000000..cceea6581f
--- /dev/null
+++ b/railties/guides/assets/images/tab_yellow.png
Binary files differ
diff --git a/railties/guides/assets/images/validation_error_messages.png b/railties/guides/assets/images/validation_error_messages.png
new file mode 100644
index 0000000000..622d35da5d
--- /dev/null
+++ b/railties/guides/assets/images/validation_error_messages.png
Binary files differ
diff --git a/railties/guides/assets/javascripts/code_highlighter.js b/railties/guides/assets/javascripts/code_highlighter.js
new file mode 100755
index 0000000000..ce983dad52
--- /dev/null
+++ b/railties/guides/assets/javascripts/code_highlighter.js
@@ -0,0 +1,188 @@
+/* Unobtrustive Code Highlighter By Dan Webb 11/2005
+ Version: 0.4
+
+ Usage:
+ Add a script tag for this script and any stylesets you need to use
+ to the page in question, add correct class names to CODE elements,
+ define CSS styles for elements. That's it!
+
+ Known to work on:
+ IE 5.5+ PC
+ Firefox/Mozilla PC/Mac
+ Opera 7.23 + PC
+ Safari 2
+
+ Known to degrade gracefully on:
+ IE5.0 PC
+
+ Note: IE5.0 fails due to the use of lookahead in some stylesets. To avoid script errors
+ in older browsers use expressions that use lookahead in string format when defining stylesets.
+
+ This script is inspired by star-light by entirely cunning Dean Edwards
+ http://dean.edwards.name/star-light/.
+*/
+
+// replace callback support for safari.
+if ("a".replace(/a/, function() {return "b"}) != "b") (function(){
+ var default_replace = String.prototype.replace;
+ String.prototype.replace = function(search,replace){
+ // replace is not function
+ if(typeof replace != "function"){
+ return default_replace.apply(this,arguments)
+ }
+ var str = "" + this;
+ var callback = replace;
+ // search string is not RegExp
+ if(!(search instanceof RegExp)){
+ var idx = str.indexOf(search);
+ return (
+ idx == -1 ? str :
+ default_replace.apply(str,[search,callback(search, idx, str)])
+ )
+ }
+ var reg = search;
+ var result = [];
+ var lastidx = reg.lastIndex;
+ var re;
+ while((re = reg.exec(str)) != null){
+ var idx = re.index;
+ var args = re.concat(idx, str);
+ result.push(
+ str.slice(lastidx,idx),
+ callback.apply(null,args).toString()
+ );
+ if(!reg.global){
+ lastidx += RegExp.lastMatch.length;
+ break
+ }else{
+ lastidx = reg.lastIndex;
+ }
+ }
+ result.push(str.slice(lastidx));
+ return result.join("")
+ }
+})();
+
+var CodeHighlighter = { styleSets : new Array };
+
+CodeHighlighter.addStyle = function(name, rules) {
+ // using push test to disallow older browsers from adding styleSets
+ if ([].push) this.styleSets.push({
+ name : name,
+ rules : rules,
+ ignoreCase : arguments[2] || false
+ })
+
+ function setEvent() {
+ // set highlighter to run on load (use LowPro if present)
+ if (typeof Event != 'undefined' && typeof Event.onReady == 'function')
+ return Event.onReady(CodeHighlighter.init.bind(CodeHighlighter));
+
+ var old = window.onload;
+
+ if (typeof window.onload != 'function') {
+ window.onload = function() { CodeHighlighter.init() };
+ } else {
+ window.onload = function() {
+ old();
+ CodeHighlighter.init();
+ }
+ }
+ }
+
+ // only set the event when the first style is added
+ if (this.styleSets.length==1) setEvent();
+}
+
+CodeHighlighter.init = function() {
+ if (!document.getElementsByTagName) return;
+ if ("a".replace(/a/, function() {return "b"}) != "b") return; // throw out Safari versions that don't support replace function
+ // throw out older browsers
+
+ var codeEls = document.getElementsByTagName("CODE");
+ // collect array of all pre elements
+ codeEls.filter = function(f) {
+ var a = new Array;
+ for (var i = 0; i < this.length; i++) if (f(this[i])) a[a.length] = this[i];
+ return a;
+ }
+
+ var rules = new Array;
+ rules.toString = function() {
+ // joins regexes into one big parallel regex
+ var exps = new Array;
+ for (var i = 0; i < this.length; i++) exps.push(this[i].exp);
+ return exps.join("|");
+ }
+
+ function addRule(className, rule) {
+ // add a replace rule
+ var exp = (typeof rule.exp != "string")?String(rule.exp).substr(1, String(rule.exp).length-2):rule.exp;
+ // converts regex rules to strings and chops of the slashes
+ rules.push({
+ className : className,
+ exp : "(" + exp + ")",
+ length : (exp.match(/(^|[^\\])\([^?]/g) || "").length + 1, // number of subexps in rule
+ replacement : rule.replacement || null
+ });
+ }
+
+ function parse(text, ignoreCase) {
+ // main text parsing and replacement
+ return text.replace(new RegExp(rules, (ignoreCase)?"gi":"g"), function() {
+ var i = 0, j = 1, rule;
+ while (rule = rules[i++]) {
+ if (arguments[j]) {
+ // if no custom replacement defined do the simple replacement
+ if (!rule.replacement) return "<span class=\"" + rule.className + "\">" + arguments[0] + "</span>";
+ else {
+ // replace $0 with the className then do normal replaces
+ var str = rule.replacement.replace("$0", rule.className);
+ for (var k = 1; k <= rule.length - 1; k++) str = str.replace("$" + k, arguments[j + k]);
+ return str;
+ }
+ } else j+= rule.length;
+ }
+ });
+ }
+
+ function highlightCode(styleSet) {
+ // clear rules array
+ var parsed, clsRx = new RegExp("(\\s|^)" + styleSet.name + "(\\s|$)");
+ rules.length = 0;
+
+ // get stylable elements by filtering out all code elements without the correct className
+ var stylableEls = codeEls.filter(function(item) { return clsRx.test(item.className) });
+
+ // add style rules to parser
+ for (var className in styleSet.rules) addRule(className, styleSet.rules[className]);
+
+
+ // replace for all elements
+ for (var i = 0; i < stylableEls.length; i++) {
+ // EVIL hack to fix IE whitespace badness if it's inside a <pre>
+ if (/MSIE/.test(navigator.appVersion) && stylableEls[i].parentNode.nodeName == 'PRE') {
+ stylableEls[i] = stylableEls[i].parentNode;
+
+ parsed = stylableEls[i].innerHTML.replace(/(<code[^>]*>)([^<]*)<\/code>/i, function() {
+ return arguments[1] + parse(arguments[2], styleSet.ignoreCase) + "</code>"
+ });
+ parsed = parsed.replace(/\n( *)/g, function() {
+ var spaces = "";
+ for (var i = 0; i < arguments[1].length; i++) spaces+= "&nbsp;";
+ return "\n" + spaces;
+ });
+ parsed = parsed.replace(/\t/g, "&nbsp;&nbsp;&nbsp;&nbsp;");
+ parsed = parsed.replace(/\n(<\/\w+>)?/g, "<br />$1").replace(/<br \/>[\n\r\s]*<br \/>/g, "<p><br></p>");
+
+ } else parsed = parse(stylableEls[i].innerHTML, styleSet.ignoreCase);
+
+ stylableEls[i].innerHTML = parsed;
+ }
+ }
+
+ // run highlighter on all stylesets
+ for (var i=0; i < this.styleSets.length; i++) {
+ highlightCode(this.styleSets[i]);
+ }
+}
diff --git a/railties/guides/assets/javascripts/guides.js b/railties/guides/assets/javascripts/guides.js
new file mode 100755
index 0000000000..c4e4d459ea
--- /dev/null
+++ b/railties/guides/assets/javascripts/guides.js
@@ -0,0 +1,7 @@
+function guideMenu(){
+ if (document.getElementById('guides').style.display == "none") {
+ document.getElementById('guides').style.display = "block";
+ } else {
+ document.getElementById('guides').style.display = "none";
+ }
+}
diff --git a/railties/guides/assets/javascripts/highlighters.js b/railties/guides/assets/javascripts/highlighters.js
new file mode 100644
index 0000000000..4f5f0779d7
--- /dev/null
+++ b/railties/guides/assets/javascripts/highlighters.js
@@ -0,0 +1,90 @@
+CodeHighlighter.addStyle("css", {
+ comment : {
+ exp : /\/\*[^*]*\*+([^\/][^*]*\*+)*\//
+ },
+ keywords : {
+ exp : /@\w[\w\s]*/
+ },
+ selectors : {
+ exp : "([\\w-:\\[.#][^{};>]*)(?={)"
+ },
+ properties : {
+ exp : "([\\w-]+)(?=\\s*:)"
+ },
+ units : {
+ exp : /([0-9])(em|en|px|%|pt)\b/,
+ replacement : "$1<span class=\"$0\">$2</span>"
+ },
+ urls : {
+ exp : /url\([^\)]*\)/
+ }
+ });
+
+CodeHighlighter.addStyle("ruby",{
+ comment : {
+ exp : /#[^\n]+/
+ },
+ brackets : {
+ exp : /\(|\)/
+ },
+ string : {
+ exp : /'[^']*'|"[^"]*"/
+ },
+ keywords : {
+ exp : /\b(do|end|self|class|def|if|module|yield|then|else|for|until|unless|while|elsif|case|when|break|retry|redo|rescue|require|raise)\b/
+ },
+ /* Added by Shelly Fisher (shelly@agileevolved.com) */
+ symbol : {
+ exp : /([^:])(:[A-Za-z0-9_!?]+)/
+ },
+ ivar : {
+ exp : /\@[A-Za-z0-9_!?]+/
+ }
+});
+
+CodeHighlighter.addStyle("html", {
+ comment : {
+ exp: /&lt;!\s*(--([^-]|[\r\n]|-[^-])*--\s*)&gt;/
+ },
+ tag : {
+ exp: /(&lt;\/?)([a-zA-Z1-9]+\s?)/,
+ replacement: "$1<span class=\"$0\">$2</span>"
+ },
+ string : {
+ exp : /'[^']*'|"[^"]*"/
+ },
+ attribute : {
+ exp: /\b([a-zA-Z-:]+)(=)/,
+ replacement: "<span class=\"$0\">$1</span>$2"
+ },
+ doctype : {
+ exp: /&lt;!DOCTYPE([^&]|&[^g]|&g[^t])*&gt;/
+ }
+});
+
+CodeHighlighter.addStyle("javascript",{
+ comment : {
+ exp : /(\/\/[^\n]*(\n|$))|(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)/
+ },
+ brackets : {
+ exp : /\(|\)/
+ },
+ string : {
+ exp : /'[^']*'|"[^"]*"/
+ },
+ keywords : {
+ exp : /\b(arguments|break|case|continue|default|delete|do|else|false|for|function|if|in|instanceof|new|null|return|switch|this|true|typeof|var|void|while|with)\b/
+ },
+ global : {
+ exp : /\b(toString|valueOf|window|element|prototype|constructor|document|escape|unescape|parseInt|parseFloat|setTimeout|clearTimeout|setInterval|clearInterval|NaN|isNaN|Infinity)\b/
+ }
+});
+
+CodeHighlighter.addStyle("yaml", {
+ keyword : {
+ exp : /\/\*[^*]*\*+([^\/][^*]*\*+)*\//
+ },
+ value : {
+ exp : /@\w[\w\s]*/
+ },
+});
diff --git a/railties/guides/assets/stylesheets/main.css b/railties/guides/assets/stylesheets/main.css
new file mode 100644
index 0000000000..7ccae2c87e
--- /dev/null
+++ b/railties/guides/assets/stylesheets/main.css
@@ -0,0 +1,452 @@
+/* Guides.rubyonrails.org */
+/* Main.css */
+/* Created January 30, 2009 */
+/* Modified February 8, 2009
+--------------------------------------- */
+
+/* General
+--------------------------------------- */
+
+.left {float: left; margin-right: 1em;}
+.right {float: right; margin-left: 1em;}
+.small {font-size: smaller;}
+.large {font-size: larger;}
+.hide {display: none;}
+
+li ul, li ol { margin:0 1.5em; }
+ul, ol { margin: 0 1.5em 1.5em 1.5em; }
+
+ul { list-style-type: disc; }
+ol { list-style-type: decimal; }
+
+dl { margin: 0 0 1.5em 0; }
+dl dt { font-weight: bold; }
+dd { margin-left: 1.5em;}
+
+pre,code { margin: 1.5em 0; white-space: pre; overflow: auto; }
+pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height: 1.5; }
+
+abbr, acronym { border-bottom: 1px dotted #666; }
+address { margin: 0 0 1.5em; font-style: italic; }
+del { color:#666; }
+
+blockquote { margin: 1.5em; color: #666; font-style: italic; }
+strong { font-weight: bold; }
+em, dfn { font-style: italic; }
+dfn { font-weight: bold; }
+sup, sub { line-height: 0; }
+p {margin: 0 0 1.5em;}
+
+label { font-weight: bold; }
+fieldset { padding:1.4em; margin: 0 0 1.5em 0; border: 1px solid #ccc; }
+legend { font-weight: bold; font-size:1.2em; }
+
+input.text, input.title,
+textarea, select {
+ margin:0.5em 0;
+ border:1px solid #bbb;
+}
+
+table {
+ margin: 0 0 1.5em;
+ border: 2px solid #CCC;
+ background: #FFF;
+ border-collapse: collapse;
+}
+
+table th, table td {
+ padding: 0.25em 1em;
+ border: 1px solid #CCC;
+ border-collapse: collapse;
+}
+
+table th {
+ border-bottom: 2px solid #CCC;
+ background: #EEE;
+ font-weight: bold;
+ padding: 0.5em 1em;
+}
+
+
+/* Structure and Layout
+--------------------------------------- */
+
+body {
+ text-align: center;
+ font-family: Helvetica, Arial, sans-serif;
+ font-size: 87.5%;
+ line-height: 1.5em;
+ background: #222;
+ color: #999;
+ }
+
+.wrapper {
+ text-align: left;
+ margin: 0 auto;
+ width: 69em;
+ }
+
+#topNav {
+ padding: 1em 0;
+ color: #565656;
+}
+
+#header {
+ background: #c52f24 url(../images/header_tile.gif) repeat-x;
+ color: #FFF;
+ padding: 1.5em 0;
+ position: relative;
+ z-index: 99;
+ }
+
+#feature {
+ background: #d5e9f6 url(../images/feature_tile.gif) repeat-x;
+ color: #333;
+ padding: 0.5em 0 1.5em;
+}
+
+#container {
+ background: #FFF;
+ color: #333;
+ padding: 0.5em 0 1.5em 0;
+ }
+
+#mainCol {
+ width: 45em;
+ margin-left: 2em;
+ }
+
+#subCol {
+ position: absolute;
+ z-index: 0;
+ top: 0;
+ right: 0;
+ background: #FFF;
+ padding: 1em 1.5em 1em 1.25em;
+ width: 17em;
+ font-size: 0.9285em;
+ line-height: 1.3846em;
+ }
+
+#extraCol {display: none;}
+
+#footer {
+ padding: 2em 0;
+ background: url(../images/footer_tile.gif) repeat-x;
+ }
+#footer .wrapper {
+ padding-left: 2em;
+ width: 67em;
+}
+
+#header .wrapper, #topNav .wrapper, #feature .wrapper {padding-left: 1em; width: 68em;}
+#feature .wrapper {width: 45em; padding-right: 23em; position: relative; z-index: 0;}
+
+/* Links
+--------------------------------------- */
+
+a, a:link, a:visited {
+ color: #ee3f3f;
+ text-decoration: underline;
+ }
+
+#mainCol a, #subCol a, #feature a {color: #980905;}
+
+
+/* Navigation
+--------------------------------------- */
+
+.nav {margin: 0; padding: 0;}
+.nav li {display: inline; list-style: none;}
+
+#header .nav {
+ float: right;
+ margin-top: 1.5em;
+ font-size: 1.2857em;
+}
+
+#header .nav li {margin: 0 0 0 0.5em;}
+#header .nav a {color: #FFF; text-decoration: none;}
+#header .nav a:hover {text-decoration: underline;}
+
+#header .nav .index {
+ padding: 0.5em 1.5em;
+ border-radius: 1em;
+ -webkit-border-radius: 1em;
+ -moz-border-radius: 1em;
+ background: #980905;
+ position: relative;
+}
+
+#header .nav .index a {
+ background: #980905 url(../images/nav_arrow.gif) no-repeat right top;
+ padding-right: 1em;
+ position: relative;
+ z-index: 15;
+ padding-bottom: 0.125em;
+}
+#header .nav .index:hover a, #header .nav .index a:hover {background-position: right -81px;}
+
+#guides {
+ width: 27em;
+ display: block;
+ background: #980905;
+ border-radius: 1em;
+ -webkit-border-radius: 1em;
+ -moz-border-radius: 1em;
+ -webkit-box-shadow: 0.25em 0.25em 1em rgba(0,0,0,0.25);
+ -moz-box-shadow: rgba(0,0,0,0.25) 0.25em 0.25em 1em;
+ color: #f1938c;
+ padding: 1.5em 2em;
+ position: absolute;
+ z-index: 10;
+ top: -0.25em;
+ right: 0;
+ padding-top: 2em;
+}
+
+#guides dt, #guides dd {
+ font-weight: normal;
+ font-size: 0.722em;
+ margin: 0;
+ padding: 0;
+}
+#guides dt {padding:0; margin: 0.5em 0 0;}
+#guides a {color: #FFF; background: none !important;}
+#guides .L, #guides .R {float: left; width: 50%; margin: 0; padding: 0;}
+#guides .R {float: right;}
+#guides hr {
+ display: block;
+ border: none;
+ height: 1px;
+ color: #f1938c;
+ background: #f1938c;
+}
+
+/* Headings
+--------------------------------------- */
+
+h1 {
+ font-size: 2.5em;
+ line-height: 1em;
+ margin: 0.6em 0 .2em;
+ font-weight: bold;
+ }
+
+h2 {
+ font-size: 2.1428em;
+ line-height: 1em;
+ margin: 0.7em 0 .2333em;
+ font-weight: bold;
+ }
+
+h3 {
+ font-size: 1.7142em;
+ line-height: 1.286em;
+ margin: 0.875em 0 0.2916em;
+ font-weight: bold;
+ }
+
+h4 {
+ font-size: 1.2857em;
+ line-height: 1.2em;
+ margin: 1.6667em 0 .3887em;
+ font-weight: bold;
+ }
+
+h5 {
+ font-size: 1em;
+ line-height: 1.5em;
+ margin: 1em 0 .5em;
+ font-weight: bold;
+}
+
+h6 {
+ font-size: 1em;
+ line-height: 1.5em;
+ margin: 1em 0 .5em;
+ font-weight: normal;
+ }
+
+.section {
+ padding-bottom: 0.25em;
+ border-bottom: 1px solid #999;
+}
+
+/* Content
+--------------------------------------- */
+
+.pic {
+ margin: 0 2em 2em 0;
+}
+
+#topNav strong {color: #999; margin-right: 0.5em;}
+#topNav strong a {color: #FFF;}
+
+#header h1 {
+ float: left;
+ background: url(../images/rails_guides_logo.gif) no-repeat;
+ width: 297px;
+ text-indent: -9999em;
+ margin: 0;
+ padding: 0;
+}
+
+#header h1 a {
+ text-decoration: none;
+ display: block;
+ height: 77px;
+}
+
+#feature p {
+ font-size: 1.2857em;
+ margin-bottom: 0.75em;
+}
+
+#feature ul {margin-left: 0;}
+#feature ul li {
+ list-style: none;
+ background: url(../images/check_bullet.gif) no-repeat left 0.5em;
+ padding: 0.5em 1.75em 0.5em 1.75em;
+ font-size: 1.1428em;
+ font-weight: bold;
+}
+
+#mainCol dd, #subCol dd {
+ padding: 0.25em 0 1em;
+ border-bottom: 1px solid #CCC;
+ margin-bottom: 1em;
+ margin-left: 0;
+ /*padding-left: 28px;*/
+ padding-left: 0;
+}
+
+#mainCol dt, #subCol dt {
+ font-size: 1.2857em;
+ padding: 0.125em 0 0.25em 0;
+ margin-bottom: 0;
+ /*background: url(../images/book_icon.gif) no-repeat left top;
+ padding: 0.125em 0 0.25em 28px;*/
+}
+
+#mainCol dd.ticket, #subCol dd.ticket {
+ background: #fff9d8 url(../images/tab_yellow.gif) no-repeat left top;
+ border: none;
+ padding: 1.25em 1em 1.25em 48px;
+ margin-left: 0;
+ margin-top: 0.25em;
+}
+
+#mainCol div.warning, #subCol dd.warning {
+ background: #f9d9d8 url(../images/tab_red.gif) no-repeat left top;
+ border: none;
+ padding: 1.25em 1.25em 1.25em 48px;
+ margin-left: 0;
+ margin-top: 0.25em;
+}
+
+#subCol .chapters {color: #980905;}
+#subCol .chapters a {font-weight: bold;}
+#subCol .chapters ul a {font-weight: normal;}
+#subCol .chapters li {margin-bottom: 0.75em;}
+#subCol h3.chapter {margin-top: 0.25em;}
+#subCol h3.chapter img {vertical-align: text-bottom;}
+#subCol .chapters ul {margin-left: 0; margin-top: 0.5em;}
+#subCol .chapters ul li {
+ list-style: none;
+ padding: 0 0 0 1em;
+ background: url(../images/bullet.gif) no-repeat left 0.45em;
+ margin-left: 0;
+ font-size: 1em;
+ font-weight: normal;
+}
+
+tt {
+ font-family: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace;
+}
+
+div.code_container {
+ background: #EEE url(../images/tab_grey.gif) no-repeat left top;
+ padding: 0.25em 1em 0.5em 48px;
+}
+
+code {
+ font-family: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace;
+ border: none;
+ margin: 0.25em 0 1.5em 0;
+ display: block;
+}
+
+.note {
+ background: #fff9d8 url(../images/tab_note.gif) no-repeat left top;
+ border: none;
+ padding: 1em 1em 0.25em 48px;
+ margin: 0.25em 0 1.5em 0;
+}
+
+.info {
+ background: #d5e9f6 url(../images/tab_info.gif) no-repeat left top;
+ border: none;
+ padding: 1em 1em 0.25em 48px;
+ margin: 0.25em 0 1.5em 0;
+}
+
+.note tt, .info tt {border:none; background: none; padding: 0;}
+
+#mainCol ul li {
+ list-style:none;
+ background: url(../images/grey_bullet.gif) no-repeat left 0.5em;
+ padding-left: 1em;
+ margin-left: 0;
+}
+
+#subCol .content {
+ font-size: 0.7857em;
+ line-height: 1.5em;
+}
+
+#subCol .content li {
+ font-weight: normal;
+ background: none;
+ padding: 0 0 1em;
+ font-size: 1.1667em;
+}
+
+/* Clearing
+--------------------------------------- */
+
+.clearfix:after {
+ content: ".";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden;
+}
+
+.clearfix {display: inline-block;}
+* html .clearfix {height: 1%;}
+.clearfix {display: block;}
+.clear { clear:both; }
+
+/* Same bottom margin for special boxes than for regular paragraphs, this way
+intermediate whitespace looks uniform. */
+div.code_container, div.important, div.caution, div.warning, div.note, div.info {
+ margin-bottom: 1.5em;
+}
+
+/* Remove bottom margin of paragraphs in special boxes, otherwise they get a
+spurious blank area below with the box background. */
+div.important p, div.caution p, div.warning p, div.note p, div.info p {
+ margin-bottom: 0px;
+}
+
+/* Edge Badge
+--------------------------------------- */
+
+#edge-badge {
+ position: fixed;
+ right: 0px;
+ top: 0px;
+ z-index: 100;
+ border: none;
+}
diff --git a/railties/guides/assets/stylesheets/print.css b/railties/guides/assets/stylesheets/print.css
new file mode 100755
index 0000000000..628da105d4
--- /dev/null
+++ b/railties/guides/assets/stylesheets/print.css
@@ -0,0 +1,52 @@
+/* Guides.rubyonrails.org */
+/* Print.css */
+/* Created January 30, 2009 */
+/* Modified January 31, 2009
+--------------------------------------- */
+
+body, .wrapper, .note, .info, code, #topNav, .L, .R, #frame, #container, #header, #navigation, #footer, #feature, #mainCol, #subCol, #extraCol, .content {position: static; text-align: left; text-indent: 0; background: White; color: Black; border-color: Black; width: auto; height: auto; display: block; float: none; min-height: 0; margin: 0; padding: 0;}
+
+body {
+ background: #FFF;
+ font-size: 10pt !important;
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+ line-height: 1.5;
+ color: #000;
+ padding: 0 3%;
+ }
+
+.hide, .nav {
+ display: none !important;
+ }
+
+a:link, a:visited {
+ background: transparent;
+ font-weight: bold;
+ text-decoration: underline;
+ }
+
+hr {
+ background:#ccc;
+ color:#ccc;
+ width:100%;
+ height:2px;
+ margin:2em 0;
+ padding:0;
+ border:none;
+}
+
+h1,h2,h3,h4,h5,h6 { font-family: "Helvetica Neue", Arial, "Lucida Grande", sans-serif; }
+code { font:.9em "Courier New", Monaco, Courier, monospace; }
+
+img { float:left; margin:1.5em 1.5em 1.5em 0; }
+a img { border:none; }
+
+blockquote {
+ margin:1.5em;
+ padding:1em;
+ font-style:italic;
+ font-size:.9em;
+}
+
+.small { font-size: .9em; }
+.large { font-size: 1.1em; }
diff --git a/railties/guides/assets/stylesheets/reset.css b/railties/guides/assets/stylesheets/reset.css
new file mode 100755
index 0000000000..cb14fbcc55
--- /dev/null
+++ b/railties/guides/assets/stylesheets/reset.css
@@ -0,0 +1,43 @@
+/* Guides.rubyonrails.org */
+/* Reset.css */
+/* Created January 30, 2009
+--------------------------------------- */
+
+html, body, div, span, applet, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, big, cite, code,
+del, dfn, em, font, img, ins, kbd, q, s, samp,
+small, strike, strong, sub, sup, tt, var,
+b, u, i, center,
+dl, dt, dd, ol, ul, li,
+fieldset, form, label, legend,
+table, caption, tbody, tfoot, thead, tr, th, td {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ outline: 0;
+ font-size: 100%;
+ background: transparent;
+}
+
+body {line-height: 1; color: black; background: white;}
+a img {border:none;}
+ins {text-decoration: none;}
+del {text-decoration: line-through;}
+
+:focus {
+ -moz-outline:0;
+ outline:0;
+ outline-offset:0;
+}
+
+/* tables still need 'cellspacing="0"' in the markup */
+table {border-collapse: collapse; border-spacing: 0;}
+caption, th, td {text-align: left; font-weight: normal;}
+
+blockquote, q {quotes: none;}
+blockquote:before, blockquote:after,
+q:before, q:after {
+ content: '';
+ content: none;
+}
diff --git a/railties/guides/assets/stylesheets/style.css b/railties/guides/assets/stylesheets/style.css
new file mode 100755
index 0000000000..89b2ab885a
--- /dev/null
+++ b/railties/guides/assets/stylesheets/style.css
@@ -0,0 +1,13 @@
+/* Guides.rubyonrails.org */
+/* Style.css */
+/* Created January 30, 2009
+--------------------------------------- */
+
+/*
+---------------------------------------
+Import advanced style sheet
+---------------------------------------
+*/
+
+@import url("reset.css");
+@import url("main.css");
diff --git a/railties/guides/assets/stylesheets/syntax.css b/railties/guides/assets/stylesheets/syntax.css
new file mode 100644
index 0000000000..55fc5b209f
--- /dev/null
+++ b/railties/guides/assets/stylesheets/syntax.css
@@ -0,0 +1,31 @@
+.html .tag {
+ color : green;
+}
+
+.html .doctype {
+ color: #708090;
+}
+
+.erb .tag {
+ color : green;
+}
+
+.erb .doctype {
+ color: #708090;
+}
+
+.ruby .keywords {
+ color : red;
+}
+
+.ruby .ivar {
+ color : blue;
+}
+
+.ruby .comment {
+ color: #708090;
+}
+
+.ruby .symbol {
+ color: green;
+}