Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
3bbc2fb9
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,发现更多精彩内容 >>
提交
3bbc2fb9
编写于
7月 08, 2012
作者:
C
Carlos Antonio da Silva
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Improve and fix AP changelog, sync release notes [ci skip]
上级
9c4afcf4
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
2 deletion
+14
-2
actionpack/CHANGELOG.md
actionpack/CHANGELOG.md
+2
-2
guides/source/4_0_release_notes.textile
guides/source/4_0_release_notes.textile
+12
-0
未找到文件。
actionpack/CHANGELOG.md
浏览文件 @
3bbc2fb9
## Rails 4.0.0 (unreleased) ##
*
Add routes to page while debugging a RoutingError
in development.
*Richard Schneeman and Mattt Thompson*
*
Show routes in exception page while debugging a
`RoutingError`
in development.
*Richard Schneeman and Mattt Thompson*
*
Add
`ActionController::Flash.add_flash_types`
method to allow people to register their own flash types. e.g.:
...
...
@@ -8,7 +8,7 @@
add_flash_types :error, :warning
end
If you add the above code, you can use `<%= error %>` in an erb, and `rediect_to /foo, :error => 'message'` in a controller.
If you add the above code, you can use `<%= error %>` in an erb, and `redi
r
ect_to /foo, :error => 'message'` in a controller.
*kennyj*
...
...
guides/source/4_0_release_notes.textile
浏览文件 @
3bbc2fb9
...
...
@@ -122,6 +122,16 @@ h3. Action Pack
h4. Action Controller
* Add <tt>ActionController::Flash.add_flash_types</tt> method to allow people to register their own flash types. e.g.:
<ruby>
class ApplicationController
add_flash_types :error, :warning
end
</ruby>
If you add the above code, you can use <tt><%= error %></tt> in an erb, and <tt>redirect_to /foo, :error => 'message'</tt> in a controller.
* Remove Active Model dependency from Action Pack.
* Support unicode characters in routes. Route will be automatically escaped, so instead of manually escaping:
...
...
@@ -186,6 +196,8 @@ h5(#actioncontroller_deprecations). Deprecations
h4. Action Dispatch
* Show routes in exception page while debugging a <tt>RoutingError</tt> in development.
* Include <tt>mounted_helpers</tt> (helpers for accessing mounted engines) in <tt>ActionDispatch::IntegrationTest</tt> by default.
* Added <tt>ActionDispatch::SSL</tt> middleware that when included force all the requests to be under HTTPS protocol.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录