rails 4.2.6.rc1 → 5.2.8.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rails might be problematic. Click here for more details.

Files changed (218) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +24 -12
  3. metadata +54 -248
  4. data/guides/CHANGELOG.md +0 -73
  5. data/guides/Rakefile +0 -79
  6. data/guides/assets/images/akshaysurve.jpg +0 -0
  7. data/guides/assets/images/belongs_to.png +0 -0
  8. data/guides/assets/images/book_icon.gif +0 -0
  9. data/guides/assets/images/bullet.gif +0 -0
  10. data/guides/assets/images/chapters_icon.gif +0 -0
  11. data/guides/assets/images/check_bullet.gif +0 -0
  12. data/guides/assets/images/credits_pic_blank.gif +0 -0
  13. data/guides/assets/images/csrf.png +0 -0
  14. data/guides/assets/images/edge_badge.png +0 -0
  15. data/guides/assets/images/favicon.ico +0 -0
  16. data/guides/assets/images/feature_tile.gif +0 -0
  17. data/guides/assets/images/footer_tile.gif +0 -0
  18. data/guides/assets/images/fxn.png +0 -0
  19. data/guides/assets/images/getting_started/article_with_comments.png +0 -0
  20. data/guides/assets/images/getting_started/challenge.png +0 -0
  21. data/guides/assets/images/getting_started/confirm_dialog.png +0 -0
  22. data/guides/assets/images/getting_started/forbidden_attributes_for_new_article.png +0 -0
  23. data/guides/assets/images/getting_started/form_with_errors.png +0 -0
  24. data/guides/assets/images/getting_started/index_action_with_edit_link.png +0 -0
  25. data/guides/assets/images/getting_started/new_article.png +0 -0
  26. data/guides/assets/images/getting_started/rails_welcome.png +0 -0
  27. data/guides/assets/images/getting_started/routing_error_no_controller.png +0 -0
  28. data/guides/assets/images/getting_started/routing_error_no_route_matches.png +0 -0
  29. data/guides/assets/images/getting_started/show_action_for_articles.png +0 -0
  30. data/guides/assets/images/getting_started/template_is_missing_articles_new.png +0 -0
  31. data/guides/assets/images/getting_started/unknown_action_create_for_articles.png +0 -0
  32. data/guides/assets/images/getting_started/unknown_action_new_for_articles.png +0 -0
  33. data/guides/assets/images/grey_bullet.gif +0 -0
  34. data/guides/assets/images/habtm.png +0 -0
  35. data/guides/assets/images/has_many.png +0 -0
  36. data/guides/assets/images/has_many_through.png +0 -0
  37. data/guides/assets/images/has_one.png +0 -0
  38. data/guides/assets/images/has_one_through.png +0 -0
  39. data/guides/assets/images/header_backdrop.png +0 -0
  40. data/guides/assets/images/header_tile.gif +0 -0
  41. data/guides/assets/images/i18n/demo_html_safe.png +0 -0
  42. data/guides/assets/images/i18n/demo_localized_pirate.png +0 -0
  43. data/guides/assets/images/i18n/demo_translated_en.png +0 -0
  44. data/guides/assets/images/i18n/demo_translated_pirate.png +0 -0
  45. data/guides/assets/images/i18n/demo_translation_missing.png +0 -0
  46. data/guides/assets/images/i18n/demo_untranslated.png +0 -0
  47. data/guides/assets/images/icons/README +0 -5
  48. data/guides/assets/images/icons/callouts/1.png +0 -0
  49. data/guides/assets/images/icons/callouts/10.png +0 -0
  50. data/guides/assets/images/icons/callouts/11.png +0 -0
  51. data/guides/assets/images/icons/callouts/12.png +0 -0
  52. data/guides/assets/images/icons/callouts/13.png +0 -0
  53. data/guides/assets/images/icons/callouts/14.png +0 -0
  54. data/guides/assets/images/icons/callouts/15.png +0 -0
  55. data/guides/assets/images/icons/callouts/2.png +0 -0
  56. data/guides/assets/images/icons/callouts/3.png +0 -0
  57. data/guides/assets/images/icons/callouts/4.png +0 -0
  58. data/guides/assets/images/icons/callouts/5.png +0 -0
  59. data/guides/assets/images/icons/callouts/6.png +0 -0
  60. data/guides/assets/images/icons/callouts/7.png +0 -0
  61. data/guides/assets/images/icons/callouts/8.png +0 -0
  62. data/guides/assets/images/icons/callouts/9.png +0 -0
  63. data/guides/assets/images/icons/caution.png +0 -0
  64. data/guides/assets/images/icons/example.png +0 -0
  65. data/guides/assets/images/icons/home.png +0 -0
  66. data/guides/assets/images/icons/important.png +0 -0
  67. data/guides/assets/images/icons/next.png +0 -0
  68. data/guides/assets/images/icons/note.png +0 -0
  69. data/guides/assets/images/icons/prev.png +0 -0
  70. data/guides/assets/images/icons/tip.png +0 -0
  71. data/guides/assets/images/icons/up.png +0 -0
  72. data/guides/assets/images/icons/warning.png +0 -0
  73. data/guides/assets/images/nav_arrow.gif +0 -0
  74. data/guides/assets/images/oscardelben.jpg +0 -0
  75. data/guides/assets/images/polymorphic.png +0 -0
  76. data/guides/assets/images/radar.png +0 -0
  77. data/guides/assets/images/rails4_features.png +0 -0
  78. data/guides/assets/images/rails_guides_kindle_cover.jpg +0 -0
  79. data/guides/assets/images/rails_guides_logo.gif +0 -0
  80. data/guides/assets/images/rails_logo_remix.gif +0 -0
  81. data/guides/assets/images/session_fixation.png +0 -0
  82. data/guides/assets/images/tab_grey.gif +0 -0
  83. data/guides/assets/images/tab_info.gif +0 -0
  84. data/guides/assets/images/tab_note.gif +0 -0
  85. data/guides/assets/images/tab_red.gif +0 -0
  86. data/guides/assets/images/tab_yellow.gif +0 -0
  87. data/guides/assets/images/tab_yellow.png +0 -0
  88. data/guides/assets/images/vijaydev.jpg +0 -0
  89. data/guides/assets/javascripts/guides.js +0 -59
  90. data/guides/assets/javascripts/jquery.min.js +0 -4
  91. data/guides/assets/javascripts/responsive-tables.js +0 -43
  92. data/guides/assets/javascripts/syntaxhighlighter/shBrushAS3.js +0 -59
  93. data/guides/assets/javascripts/syntaxhighlighter/shBrushAppleScript.js +0 -75
  94. data/guides/assets/javascripts/syntaxhighlighter/shBrushBash.js +0 -59
  95. data/guides/assets/javascripts/syntaxhighlighter/shBrushCSharp.js +0 -65
  96. data/guides/assets/javascripts/syntaxhighlighter/shBrushColdFusion.js +0 -100
  97. data/guides/assets/javascripts/syntaxhighlighter/shBrushCpp.js +0 -97
  98. data/guides/assets/javascripts/syntaxhighlighter/shBrushCss.js +0 -91
  99. data/guides/assets/javascripts/syntaxhighlighter/shBrushDelphi.js +0 -55
  100. data/guides/assets/javascripts/syntaxhighlighter/shBrushDiff.js +0 -41
  101. data/guides/assets/javascripts/syntaxhighlighter/shBrushErlang.js +0 -52
  102. data/guides/assets/javascripts/syntaxhighlighter/shBrushGroovy.js +0 -67
  103. data/guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js +0 -52
  104. data/guides/assets/javascripts/syntaxhighlighter/shBrushJava.js +0 -57
  105. data/guides/assets/javascripts/syntaxhighlighter/shBrushJavaFX.js +0 -58
  106. data/guides/assets/javascripts/syntaxhighlighter/shBrushPerl.js +0 -72
  107. data/guides/assets/javascripts/syntaxhighlighter/shBrushPhp.js +0 -88
  108. data/guides/assets/javascripts/syntaxhighlighter/shBrushPlain.js +0 -33
  109. data/guides/assets/javascripts/syntaxhighlighter/shBrushPowerShell.js +0 -74
  110. data/guides/assets/javascripts/syntaxhighlighter/shBrushPython.js +0 -64
  111. data/guides/assets/javascripts/syntaxhighlighter/shBrushRuby.js +0 -55
  112. data/guides/assets/javascripts/syntaxhighlighter/shBrushSass.js +0 -94
  113. data/guides/assets/javascripts/syntaxhighlighter/shBrushScala.js +0 -51
  114. data/guides/assets/javascripts/syntaxhighlighter/shBrushSql.js +0 -66
  115. data/guides/assets/javascripts/syntaxhighlighter/shBrushVb.js +0 -56
  116. data/guides/assets/javascripts/syntaxhighlighter/shBrushXml.js +0 -69
  117. data/guides/assets/javascripts/syntaxhighlighter/shCore.js +0 -17
  118. data/guides/assets/stylesheets/fixes.css +0 -16
  119. data/guides/assets/stylesheets/kindle.css +0 -11
  120. data/guides/assets/stylesheets/main.css +0 -713
  121. data/guides/assets/stylesheets/print.css +0 -52
  122. data/guides/assets/stylesheets/reset.css +0 -43
  123. data/guides/assets/stylesheets/responsive-tables.css +0 -50
  124. data/guides/assets/stylesheets/style.css +0 -13
  125. data/guides/assets/stylesheets/syntaxhighlighter/shCore.css +0 -226
  126. data/guides/assets/stylesheets/syntaxhighlighter/shCoreDefault.css +0 -328
  127. data/guides/assets/stylesheets/syntaxhighlighter/shCoreDjango.css +0 -331
  128. data/guides/assets/stylesheets/syntaxhighlighter/shCoreEclipse.css +0 -339
  129. data/guides/assets/stylesheets/syntaxhighlighter/shCoreEmacs.css +0 -324
  130. data/guides/assets/stylesheets/syntaxhighlighter/shCoreFadeToGrey.css +0 -328
  131. data/guides/assets/stylesheets/syntaxhighlighter/shCoreMDUltra.css +0 -324
  132. data/guides/assets/stylesheets/syntaxhighlighter/shCoreMidnight.css +0 -324
  133. data/guides/assets/stylesheets/syntaxhighlighter/shCoreRDark.css +0 -324
  134. data/guides/assets/stylesheets/syntaxhighlighter/shThemeDefault.css +0 -117
  135. data/guides/assets/stylesheets/syntaxhighlighter/shThemeDjango.css +0 -120
  136. data/guides/assets/stylesheets/syntaxhighlighter/shThemeEclipse.css +0 -128
  137. data/guides/assets/stylesheets/syntaxhighlighter/shThemeEmacs.css +0 -113
  138. data/guides/assets/stylesheets/syntaxhighlighter/shThemeFadeToGrey.css +0 -117
  139. data/guides/assets/stylesheets/syntaxhighlighter/shThemeMDUltra.css +0 -113
  140. data/guides/assets/stylesheets/syntaxhighlighter/shThemeMidnight.css +0 -113
  141. data/guides/assets/stylesheets/syntaxhighlighter/shThemeRDark.css +0 -113
  142. data/guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css +0 -116
  143. data/guides/bug_report_templates/action_controller_gem.rb +0 -47
  144. data/guides/bug_report_templates/action_controller_master.rb +0 -54
  145. data/guides/bug_report_templates/active_record_gem.rb +0 -40
  146. data/guides/bug_report_templates/active_record_master.rb +0 -49
  147. data/guides/bug_report_templates/generic_gem.rb +0 -15
  148. data/guides/bug_report_templates/generic_master.rb +0 -26
  149. data/guides/rails_guides/generator.rb +0 -248
  150. data/guides/rails_guides/helpers.rb +0 -53
  151. data/guides/rails_guides/indexer.rb +0 -68
  152. data/guides/rails_guides/kindle.rb +0 -119
  153. data/guides/rails_guides/levenshtein.rb +0 -37
  154. data/guides/rails_guides/markdown/renderer.rb +0 -82
  155. data/guides/rails_guides/markdown.rb +0 -167
  156. data/guides/rails_guides.rb +0 -63
  157. data/guides/source/2_2_release_notes.md +0 -435
  158. data/guides/source/2_3_release_notes.md +0 -621
  159. data/guides/source/3_0_release_notes.md +0 -611
  160. data/guides/source/3_1_release_notes.md +0 -559
  161. data/guides/source/3_2_release_notes.md +0 -568
  162. data/guides/source/4_0_release_notes.md +0 -279
  163. data/guides/source/4_1_release_notes.md +0 -730
  164. data/guides/source/4_2_release_notes.md +0 -877
  165. data/guides/source/_license.html.erb +0 -2
  166. data/guides/source/_welcome.html.erb +0 -23
  167. data/guides/source/action_controller_overview.md +0 -1192
  168. data/guides/source/action_mailer_basics.md +0 -757
  169. data/guides/source/action_view_overview.md +0 -1561
  170. data/guides/source/active_job_basics.md +0 -339
  171. data/guides/source/active_model_basics.md +0 -554
  172. data/guides/source/active_record_basics.md +0 -374
  173. data/guides/source/active_record_callbacks.md +0 -413
  174. data/guides/source/active_record_migrations.md +0 -1018
  175. data/guides/source/active_record_postgresql.md +0 -433
  176. data/guides/source/active_record_querying.md +0 -1781
  177. data/guides/source/active_record_validations.md +0 -1179
  178. data/guides/source/active_support_core_extensions.md +0 -3857
  179. data/guides/source/active_support_instrumentation.md +0 -488
  180. data/guides/source/api_documentation_guidelines.md +0 -361
  181. data/guides/source/asset_pipeline.md +0 -1304
  182. data/guides/source/association_basics.md +0 -2245
  183. data/guides/source/autoloading_and_reloading_constants.md +0 -1311
  184. data/guides/source/caching_with_rails.md +0 -379
  185. data/guides/source/command_line.md +0 -625
  186. data/guides/source/configuring.md +0 -1072
  187. data/guides/source/contributing_to_ruby_on_rails.md +0 -628
  188. data/guides/source/credits.html.erb +0 -80
  189. data/guides/source/debugging_rails_applications.md +0 -861
  190. data/guides/source/development_dependencies_install.md +0 -289
  191. data/guides/source/documents.yaml +0 -205
  192. data/guides/source/engines.md +0 -1412
  193. data/guides/source/form_helpers.md +0 -1024
  194. data/guides/source/generators.md +0 -676
  195. data/guides/source/getting_started.md +0 -2086
  196. data/guides/source/i18n.md +0 -1087
  197. data/guides/source/index.html.erb +0 -28
  198. data/guides/source/initialization.md +0 -704
  199. data/guides/source/kindle/copyright.html.erb +0 -1
  200. data/guides/source/kindle/layout.html.erb +0 -27
  201. data/guides/source/kindle/rails_guides.opf.erb +0 -52
  202. data/guides/source/kindle/toc.html.erb +0 -24
  203. data/guides/source/kindle/toc.ncx.erb +0 -64
  204. data/guides/source/kindle/welcome.html.erb +0 -5
  205. data/guides/source/layout.html.erb +0 -140
  206. data/guides/source/layouts_and_rendering.md +0 -1227
  207. data/guides/source/maintenance_policy.md +0 -78
  208. data/guides/source/nested_model_forms.md +0 -228
  209. data/guides/source/plugins.md +0 -444
  210. data/guides/source/rails_application_templates.md +0 -266
  211. data/guides/source/rails_on_rack.md +0 -336
  212. data/guides/source/routing.md +0 -1155
  213. data/guides/source/ruby_on_rails_guides_guidelines.md +0 -127
  214. data/guides/source/security.md +0 -1024
  215. data/guides/source/testing.md +0 -1132
  216. data/guides/source/upgrading_ruby_on_rails.md +0 -1186
  217. data/guides/source/working_with_javascript_in_rails.md +0 -407
  218. data/guides/w3c_validator.rb +0 -97
@@ -1,289 +0,0 @@
1
- Development Dependencies Install
2
- ================================
3
-
4
- This guide covers how to setup an environment for Ruby on Rails core development.
5
-
6
- After reading this guide, you will know:
7
-
8
- * How to set up your machine for Rails development
9
- * How to run specific groups of unit tests from the Rails test suite
10
- * How the ActiveRecord portion of the Rails test suite operates
11
-
12
- --------------------------------------------------------------------------------
13
-
14
- The Easy Way
15
- ------------
16
-
17
- The easiest and recommended way to get a development environment ready to hack is to use the [Rails development box](https://github.com/rails/rails-dev-box).
18
-
19
- The Hard Way
20
- ------------
21
-
22
- In case you can't use the Rails development box, see section above, these are the steps to manually build a development box for Ruby on Rails core development.
23
-
24
- ### Install Git
25
-
26
- Ruby on Rails uses Git for source code control. The [Git homepage](http://git-scm.com/) has installation instructions. There are a variety of resources on the net that will help you get familiar with Git:
27
-
28
- * [Try Git course](http://try.github.io/) is an interactive course that will teach you the basics.
29
- * The [official Documentation](http://git-scm.com/documentation) is pretty comprehensive and also contains some videos with the basics of Git
30
- * [Everyday Git](http://schacon.github.io/git/everyday.html) will teach you just enough about Git to get by.
31
- * The [PeepCode screencast](https://peepcode.com/products/git) on Git is easier to follow.
32
- * [GitHub](http://help.github.com) offers links to a variety of Git resources.
33
- * [Pro Git](http://git-scm.com/book) is an entire book about Git with a Creative Commons license.
34
-
35
- ### Clone the Ruby on Rails Repository
36
-
37
- Navigate to the folder where you want the Ruby on Rails source code (it will create its own `rails` subdirectory) and run:
38
-
39
- ```bash
40
- $ git clone git://github.com/rails/rails.git
41
- $ cd rails
42
- ```
43
-
44
- ### Set up and Run the Tests
45
-
46
- The test suite must pass with any submitted code. No matter whether you are writing a new patch, or evaluating someone else's, you need to be able to run the tests.
47
-
48
- Install first SQLite3 and its development files for the `sqlite3` gem. Mac OS X
49
- users are done with:
50
-
51
- ```bash
52
- $ brew install sqlite3
53
- ```
54
-
55
- In Ubuntu you're done with just:
56
-
57
- ```bash
58
- $ sudo apt-get install sqlite3 libsqlite3-dev
59
- ```
60
-
61
- And if you are on Fedora or CentOS, you're done with
62
-
63
- ```bash
64
- $ sudo yum install sqlite3 sqlite3-devel
65
- ```
66
-
67
- If you are on Arch Linux, you will need to run:
68
-
69
- ```bash
70
- $ sudo pacman -S sqlite
71
- ```
72
-
73
- For FreeBSD users, you're done with:
74
-
75
- ```bash
76
- # pkg install sqlite3
77
- ```
78
-
79
- Or compile the `databases/sqlite3` port.
80
-
81
- Get a recent version of [Bundler](http://bundler.io/)
82
-
83
- ```bash
84
- $ gem install bundler
85
- $ gem update bundler
86
- ```
87
-
88
- and run:
89
-
90
- ```bash
91
- $ bundle install --without db
92
- ```
93
-
94
- This command will install all dependencies except the MySQL and PostgreSQL Ruby drivers. We will come back to these soon.
95
-
96
- NOTE: If you would like to run the tests that use memcached, you need to ensure that you have it installed and running.
97
-
98
- You can use [Homebrew](http://brew.sh/) to install memcached on OS X:
99
-
100
- ```bash
101
- $ brew install memcached
102
- ```
103
-
104
- On Ubuntu you can install it with apt-get:
105
-
106
- ```bash
107
- $ sudo apt-get install memcached
108
- ```
109
-
110
- Or use yum on Fedora or CentOS:
111
-
112
- ```bash
113
- $ sudo yum install memcached
114
- ```
115
-
116
- If you are running on Arch Linux:
117
-
118
- ```bash
119
- $ sudo pacman -S memcached
120
- ```
121
-
122
- For FreeBSD users, you're done with:
123
-
124
- ```bash
125
- # pkg install memcached
126
- ```
127
-
128
- Alternatively, you can compile the `databases/memcached` port.
129
-
130
- With the dependencies now installed, you can run the test suite with:
131
-
132
- ```bash
133
- $ bundle exec rake test
134
- ```
135
-
136
- You can also run tests for a specific component, like Action Pack, by going into its directory and executing the same command:
137
-
138
- ```bash
139
- $ cd actionpack
140
- $ bundle exec rake test
141
- ```
142
-
143
- If you want to run the tests located in a specific directory use the `TEST_DIR` environment variable. For example, this will run the tests in the `railties/test/generators` directory only:
144
-
145
- ```bash
146
- $ cd railties
147
- $ TEST_DIR=generators bundle exec rake test
148
- ```
149
-
150
- You can run the tests for a particular file by using:
151
-
152
- ```bash
153
- $ cd actionpack
154
- $ bundle exec ruby -Itest test/template/form_helper_test.rb
155
- ```
156
-
157
- Or, you can run a single test in a particular file:
158
-
159
- ```bash
160
- $ cd actionpack
161
- $ bundle exec ruby -Itest path/to/test.rb -n test_name
162
- ```
163
-
164
- ### Active Record Setup
165
-
166
- The test suite of Active Record attempts to run four times: once for SQLite3, once for each of the two MySQL gems (`mysql` and `mysql2`), and once for PostgreSQL. We are going to see now how to set up the environment for them.
167
-
168
- WARNING: If you're working with Active Record code, you _must_ ensure that the tests pass for at least MySQL, PostgreSQL, and SQLite3. Subtle differences between the various adapters have been behind the rejection of many patches that looked OK when tested only against MySQL.
169
-
170
- #### Database Configuration
171
-
172
- The Active Record test suite requires a custom config file: `activerecord/test/config.yml`. An example is provided in `activerecord/test/config.example.yml` which can be copied and used as needed for your environment.
173
-
174
- #### MySQL and PostgreSQL
175
-
176
- To be able to run the suite for MySQL and PostgreSQL we need their gems. Install
177
- first the servers, their client libraries, and their development files.
178
-
179
- On OS X, you can run:
180
-
181
- ```bash
182
- $ brew install mysql
183
- $ brew install postgresql
184
- ```
185
-
186
- Follow the instructions given by Homebrew to start these.
187
-
188
- In Ubuntu just run:
189
-
190
- ```bash
191
- $ sudo apt-get install mysql-server libmysqlclient15-dev
192
- $ sudo apt-get install postgresql postgresql-client postgresql-contrib libpq-dev
193
- ```
194
-
195
- On Fedora or CentOS, just run:
196
-
197
- ```bash
198
- $ sudo yum install mysql-server mysql-devel
199
- $ sudo yum install postgresql-server postgresql-devel
200
- ```
201
-
202
- If you are running Arch Linux, MySQL isn't supported anymore so you will need to
203
- use MariaDB instead (see [this announcement](https://www.archlinux.org/news/mariadb-replaces-mysql-in-repositories/)):
204
-
205
- ```bash
206
- $ sudo pacman -S mariadb libmariadbclient mariadb-clients
207
- $ sudo pacman -S postgresql postgresql-libs
208
- ```
209
-
210
- FreeBSD users will have to run the following:
211
-
212
- ```bash
213
- # pkg install mysql56-client mysql56-server
214
- # pkg install postgresql93-client postgresql93-server
215
- ```
216
-
217
- Or install them through ports (they are located under the `databases` folder).
218
- If you run into troubles during the installation of MySQL, please see
219
- [the MySQL documentation](http://dev.mysql.com/doc/refman/5.1/en/freebsd-installation.html).
220
-
221
- After that, run:
222
-
223
- ```bash
224
- $ rm .bundle/config
225
- $ bundle install
226
- ```
227
-
228
- First, we need to delete `.bundle/config` because Bundler remembers in that file that we didn't want to install the "db" group (alternatively you can edit the file).
229
-
230
- In order to be able to run the test suite against MySQL you need to create a user named `rails` with privileges on the test databases:
231
-
232
- ```bash
233
- $ mysql -uroot -p
234
-
235
- mysql> CREATE USER 'rails'@'localhost';
236
- mysql> GRANT ALL PRIVILEGES ON activerecord_unittest.*
237
- to 'rails'@'localhost';
238
- mysql> GRANT ALL PRIVILEGES ON activerecord_unittest2.*
239
- to 'rails'@'localhost';
240
- mysql> GRANT ALL PRIVILEGES ON inexistent_activerecord_unittest.*
241
- to 'rails'@'localhost';
242
- ```
243
-
244
- and create the test databases:
245
-
246
- ```bash
247
- $ cd activerecord
248
- $ bundle exec rake db:mysql:build
249
- ```
250
-
251
- PostgreSQL's authentication works differently. To setup the development environment
252
- with your development account, on Linux or BSD, you just have to run:
253
-
254
- ```bash
255
- $ sudo -u postgres createuser --superuser $USER
256
- ```
257
-
258
- and for OS X:
259
-
260
- ```bash
261
- $ createuser --superuser $USER
262
- ```
263
-
264
- Then you need to create the test databases with
265
-
266
- ```bash
267
- $ cd activerecord
268
- $ bundle exec rake db:postgresql:build
269
- ```
270
-
271
- It is possible to build databases for both PostgreSQL and MySQL with
272
-
273
- ```bash
274
- $ cd activerecord
275
- $ bundle exec rake db:create
276
- ```
277
-
278
- You can cleanup the databases using
279
-
280
- ```bash
281
- $ cd activerecord
282
- $ bundle exec rake db:drop
283
- ```
284
-
285
- NOTE: Using the rake task to create the test databases ensures they have the correct character set and collation.
286
-
287
- NOTE: You'll see the following warning (or localized warning) during activating HStore extension in PostgreSQL 9.1.x or earlier: "WARNING: => is deprecated as an operator".
288
-
289
- If you're using another database, check the file `activerecord/test/config.yml` or `activerecord/test/config.example.yml` for default connection information. You can edit `activerecord/test/config.yml` to provide different credentials on your machine if you must, but obviously you should not push any such changes back to Rails.
@@ -1,205 +0,0 @@
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: Active Record Basics
13
- url: active_record_basics.html
14
- description: This guide will get you started with models, persistence to database and the Active Record pattern and library.
15
- -
16
- name: Active Record Migrations
17
- url: active_record_migrations.html
18
- description: This guide covers how you can use Active Record migrations to alter your database in a structured and organized manner.
19
- -
20
- name: Active Record Validations
21
- url: active_record_validations.html
22
- description: This guide covers how you can use Active Record validations
23
- -
24
- name: Active Record Callbacks
25
- url: active_record_callbacks.html
26
- description: This guide covers how you can use Active Record callbacks.
27
- -
28
- name: Active Record Associations
29
- url: association_basics.html
30
- description: This guide covers all the associations provided by Active Record.
31
- -
32
- name: Active Record Query Interface
33
- url: active_record_querying.html
34
- description: This guide covers the database query interface provided by Active Record.
35
- -
36
- name: Active Model basics
37
- url: active_model_basics.html
38
- description: This guide covers the use of model classes without Active Record.
39
- work_in_progress: true
40
- -
41
- name: Views
42
- documents:
43
- -
44
- name: Action View Overview
45
- url: action_view_overview.html
46
- description: This guide provides an introduction to Action View and introduces a few of the more common view helpers.
47
- work_in_progress: true
48
- -
49
- name: Layouts and Rendering in Rails
50
- url: layouts_and_rendering.html
51
- 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.
52
- -
53
- name: Action View Form Helpers
54
- url: form_helpers.html
55
- description: Guide to using built-in Form helpers.
56
- -
57
- name: Controllers
58
- documents:
59
- -
60
- name: Action Controller Overview
61
- url: action_controller_overview.html
62
- 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.
63
- -
64
- name: Rails Routing from the Outside In
65
- url: routing.html
66
- 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.
67
- -
68
- name: Digging Deeper
69
- documents:
70
- -
71
- name: Active Support Core Extensions
72
- url: active_support_core_extensions.html
73
- description: This guide documents the Ruby core extensions defined in Active Support.
74
- -
75
- name: Rails Internationalization API
76
- url: i18n.html
77
- 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.
78
- -
79
- name: Action Mailer Basics
80
- url: action_mailer_basics.html
81
- description: This guide describes how to use Action Mailer to send and receive emails.
82
- -
83
- name: Active Job Basics
84
- url: active_job_basics.html
85
- description: This guide provides you with all you need to get started in creating, enqueueing and executing background jobs.
86
- -
87
- name: Testing Rails Applications
88
- url: testing.html
89
- work_in_progress: true
90
- 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.
91
- -
92
- name: Securing Rails Applications
93
- url: security.html
94
- description: This guide describes common security problems in web applications and how to avoid them with Rails.
95
- -
96
- name: Debugging Rails Applications
97
- url: debugging_rails_applications.html
98
- 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.
99
- -
100
- name: Configuring Rails Applications
101
- url: configuring.html
102
- description: This guide covers the basic configuration settings for a Rails application.
103
- -
104
- name: Rails Command Line Tools and Rake Tasks
105
- url: command_line.html
106
- description: This guide covers the command line tools and rake tasks provided by Rails.
107
- -
108
- name: Asset Pipeline
109
- url: asset_pipeline.html
110
- description: This guide documents the asset pipeline.
111
- -
112
- name: Working with JavaScript in Rails
113
- url: working_with_javascript_in_rails.html
114
- description: This guide covers the built-in Ajax/JavaScript functionality of Rails.
115
- -
116
- name: Getting Started with Engines
117
- url: engines.html
118
- description: This guide explains how to write a mountable engine.
119
- work_in_progress: true
120
- -
121
- name: The Rails Initialization Process
122
- work_in_progress: true
123
- url: initialization.html
124
- description: This guide explains the internals of the Rails initialization process as of Rails 4
125
- -
126
- name: Autoloading and Reloading Constants
127
- url: autoloading_and_reloading_constants.html
128
- description: This guide documents how autoloading and reloading constants work.
129
- -
130
- name: Extending Rails
131
- documents:
132
- -
133
- name: The Basics of Creating Rails Plugins
134
- work_in_progress: true
135
- url: plugins.html
136
- description: This guide covers how to build a plugin to extend the functionality of Rails.
137
- -
138
- name: Rails on Rack
139
- url: rails_on_rack.html
140
- description: This guide covers Rails integration with Rack and interfacing with other Rack components.
141
- -
142
- name: Creating and Customizing Rails Generators
143
- url: generators.html
144
- 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).
145
- -
146
- name: Contributing to Ruby on Rails
147
- documents:
148
- -
149
- name: Contributing to Ruby on Rails
150
- url: contributing_to_ruby_on_rails.html
151
- 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.
152
- -
153
- name: API Documentation Guidelines
154
- url: api_documentation_guidelines.html
155
- description: This guide documents the Ruby on Rails API documentation guidelines.
156
- -
157
- name: Ruby on Rails Guides Guidelines
158
- url: ruby_on_rails_guides_guidelines.html
159
- description: This guide documents the Ruby on Rails guides guidelines.
160
- -
161
- name: Maintenance Policy
162
- documents:
163
- -
164
- name: Maintenance Policy
165
- url: maintenance_policy.html
166
- description: What versions of Ruby on Rails are currently supported, and when to expect new versions.
167
- -
168
- name: Release Notes
169
- documents:
170
- -
171
- name: Upgrading Ruby on Rails
172
- url: upgrading_ruby_on_rails.html
173
- description: This guide helps in upgrading applications to latest Ruby on Rails versions.
174
- -
175
- name: Ruby on Rails 4.2 Release Notes
176
- url: 4_2_release_notes.html
177
- description: Release notes for Rails 4.2.
178
- -
179
- name: Ruby on Rails 4.1 Release Notes
180
- url: 4_1_release_notes.html
181
- description: Release notes for Rails 4.1.
182
- -
183
- name: Ruby on Rails 4.0 Release Notes
184
- url: 4_0_release_notes.html
185
- description: Release notes for Rails 4.0.
186
- -
187
- name: Ruby on Rails 3.2 Release Notes
188
- url: 3_2_release_notes.html
189
- description: Release notes for Rails 3.2.
190
- -
191
- name: Ruby on Rails 3.1 Release Notes
192
- url: 3_1_release_notes.html
193
- description: Release notes for Rails 3.1.
194
- -
195
- name: Ruby on Rails 3.0 Release Notes
196
- url: 3_0_release_notes.html
197
- description: Release notes for Rails 3.0.
198
- -
199
- name: Ruby on Rails 2.3 Release Notes
200
- url: 2_3_release_notes.html
201
- description: Release notes for Rails 2.3.
202
- -
203
- name: Ruby on Rails 2.2 Release Notes
204
- url: 2_2_release_notes.html
205
- description: Release notes for Rails 2.2.