Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
ab0cbff0
R
rails
项目概览
张重言
/
rails
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rails
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ab0cbff0
编写于
8月 31, 2013
作者:
V
Vijay Dev
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of github.com:rails/docrails
上级
15455d76
3bcecf82
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
12 deletion
+18
-12
activesupport/lib/active_support/inflector/methods.rb
activesupport/lib/active_support/inflector/methods.rb
+1
-1
guides/source/asset_pipeline.md
guides/source/asset_pipeline.md
+2
-2
guides/source/development_dependencies_install.md
guides/source/development_dependencies_install.md
+8
-7
guides/source/migrations.md
guides/source/migrations.md
+7
-2
未找到文件。
activesupport/lib/active_support/inflector/methods.rb
浏览文件 @
ab0cbff0
...
...
@@ -36,7 +36,7 @@ def pluralize(word, locale = :en)
# string.
#
# If passed an optional +locale+ parameter, the word will be
#
plural
ized using rules defined for that language. By default,
#
singular
ized using rules defined for that language. By default,
# this parameter is set to <tt>:en</tt>.
#
# 'posts'.singularize # => "post"
...
...
guides/source/asset_pipeline.md
浏览文件 @
ab0cbff0
...
...
@@ -765,8 +765,8 @@ headers.
For Apache:
```
apache
# The Expires* directives requires the Apache module
`mod_expires` to be
# enabled.
# The Expires* directives requires the Apache module
#
`mod_expires` to be
enabled.
<
Location
/assets/
>
# Use of ETag is discouraged when Last-Modified is present
Header
unset
ETag
FileETag
None
...
...
guides/source/development_dependencies_install.md
浏览文件 @
ab0cbff0
...
...
@@ -86,7 +86,6 @@ And if you are on Fedora or CentOS, you're done with
$
sudo
yum
install
sqlite3 sqlite3-devel
```
<<<<<<< HEAD
If you are on Arch Linux, you will need to run:
```
bash
...
...
@@ -101,8 +100,6 @@ For FreeBSD users, you're done with:
Or compile the
`databases/sqlite3`
port.
=======
>>>>>>> ec8ef1e1055c4e1598da13f49d30261f07f4a9b4
Get a recent version of
[
Bundler
](
http://gembundler.com/
)
```
bash
...
...
@@ -158,13 +155,20 @@ $ cd railties
$ TEST_DIR
=
generators bundle
exec
rake
test
```
You can run
any single test separately too
:
You can run
the tests for a particular file by using
:
```
bash
$
cd
actionpack
$
bundle
exec
ruby
-Itest
test
/template/form_helper_test.rb
```
Or, you can run a single test in a particular file:
```
bash
$
cd
actionpack
$
bundle
exec
ruby
-Itest
path/to/test.rb
-n
test_name
```
### Active Record Setup
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.
...
...
@@ -191,7 +195,6 @@ $ sudo yum install mysql-server mysql-devel
$
sudo
yum
install
postgresql-server postgresql-devel
```
<<<<<<< HEAD
If you are running Arch Linux, MySQL isn't supported anymore so you will need to
use MariaDB instead (see
[
this announcement
](
https://www.archlinux.org/news/mariadb-replaces-mysql-in-repositories/
)
):
...
...
@@ -211,8 +214,6 @@ Or install them through ports (they are located under the `databases` folder).
If you run into troubles during the installation of MySQL, please see
[
the MySQL documentation
](
http://dev.mysql.com/doc/refman/5.1/en/freebsd-installation.html
)
.
=======
>>>>>>> ec8ef1e1055c4e1598da13f49d30261f07f4a9b4
After that, run:
```
bash
...
...
guides/source/migrations.md
浏览文件 @
ab0cbff0
...
...
@@ -692,10 +692,15 @@ Neither of these Rake tasks do anything you could not do with `db:migrate`. They
are simply more convenient, since you do not need to explicitly specify the
version to migrate to.
### Setup the Database
The
`rake db:setup`
task will create the database, load the schema and initialize
it with the seed data.
### Resetting the Database
The
`rake db:reset`
task will drop the database
, recreate it and load the
current schema into it
.
The
`rake db:reset`
task will drop the database
and set it up again. This is
functionally equivalent to
`rake db:drop db:setup`
.
NOTE: This is not the same as running all the migrations. It will only use the
contents of the current schema.rb file. If a migration can't be rolled back,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录