Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
c8dae23a
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,体验更适合开发者的 AI 搜索 >>
提交
c8dae23a
编写于
3月 04, 2011
作者:
R
R.T. Lechow
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Railties typos.
上级
12325cf9
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
6 addition
and
6 deletion
+6
-6
railties/lib/rails/engine.rb
railties/lib/rails/engine.rb
+3
-3
railties/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb
...generators/rails/plugin_new/templates/test/test_helper.rb
+1
-1
railties/lib/rails/generators/resource_helpers.rb
railties/lib/rails/generators/resource_helpers.rb
+1
-1
railties/lib/rails/railtie/configuration.rb
railties/lib/rails/railtie/configuration.rb
+1
-1
未找到文件。
railties/lib/rails/engine.rb
浏览文件 @
c8dae23a
...
...
@@ -252,12 +252,12 @@ module Rails
# end
#
# The routes above will automatically point to <tt>MyEngine::ApplicationContoller</tt>. Furthermore, you don't
# need to use longer url helpers like <tt>my_engine_articles_path</tt>. Instead, you sh
uo
ld simply use
# need to use longer url helpers like <tt>my_engine_articles_path</tt>. Instead, you sh
ou
ld simply use
# <tt>articles_path</tt> as you would do with your application.
#
# To make that behaviour consistent with other parts of the framework, an isolated engine also has influence on
# <tt>ActiveModel::Naming</tt>. When you use a namespaced model, like <tt>MyEngine::Article</tt>, it will normally
# use the prefix "my_engine". In an isolated engine, the prefix will be om
mi
ted in url helpers and
# use the prefix "my_engine". In an isolated engine, the prefix will be om
it
ted in url helpers and
# form fields for convenience.
#
# polymorphic_url(MyEngine::Article.new) #=> "articles_path"
...
...
@@ -266,7 +266,7 @@ module Rails
# text_field :title #=> <input type="text" name="article[title]" id="article_title" />
# end
#
# Additionaly isolated engine will set its name according to namespace, so
# Additional
l
y isolated engine will set its name according to namespace, so
# MyEngine::Engine.engine_name #=> "my_engine". It will also set MyEngine.table_name_prefix
# to "my_engine_", changing MyEngine::Article model to use my_engine_article table.
#
...
...
railties/lib/rails/generators/rails/plugin_new/templates/test/test_helper.rb
浏览文件 @
c8dae23a
# Configure Rails Envi
n
ronment
# Configure Rails Environment
ENV
[
"RAILS_ENV"
]
=
"test"
require
File
.
expand_path
(
"../dummy/config/environment.rb"
,
__FILE__
)
...
...
railties/lib/rails/generators/resource_helpers.rb
浏览文件 @
c8dae23a
...
...
@@ -53,7 +53,7 @@ def controller_i18n_scope
@controller_i18n_scope
||=
controller_file_path
.
gsub
(
'/'
,
'.'
)
end
# Loads the ORM::Generators::ActiveModel class. This class is respons
a
ble
# Loads the ORM::Generators::ActiveModel class. This class is respons
i
ble
# to tell scaffold entities how to generate an specific method for the
# ORM. Check Rails::Generators::ActiveModel for more information.
def
orm_class
...
...
railties/lib/rails/railtie/configuration.rb
浏览文件 @
c8dae23a
...
...
@@ -18,7 +18,7 @@ def app_middleware
# This allows you to modify application's generators from Railties.
#
# Values set on app_generators will become defaults for applica
it
on, unless
# Values set on app_generators will become defaults for applica
ti
on, unless
# application overwrites them.
def
app_generators
@@app_generators
||=
Rails
::
Configuration
::
Generators
.
new
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录