Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

action_controller_overview (8.2 その他のフィルタ使用法) #84

Closed
yui-knk opened this issue Feb 14, 2015 · 2 comments
Closed

action_controller_overview (8.2 その他のフィルタ使用法) #84

yui-knk opened this issue Feb 14, 2015 · 2 comments

Comments

@yui-knk
Copy link
Collaborator

yui-knk commented Feb 14, 2015

1番目は、*actionメソッドに対して直接ブロックを与えることです。このブロックはコントローラを引数として受け取り、その上の`requirelogin`フィルタを書き換えて、ブロックを使用するようにします。●

http://railsguides.jp/action_controller_overview.html#%E3%81%9D%E3%81%AE%E4%BB%96%E3%81%AE%E3%83%95%E3%82%A3%E3%83%AB%E3%82%BF%E4%BD%BF%E7%94%A8%E6%B3%95

ですが、_のエスケープが抜けていました。

本家のdocは以下で修正しました。
rails/rails@6b4c5ae

備忘録としてissueにしておきます。

@hachi8833
Copy link
Collaborator

ありがとうございます! GTT にも反映しました

@yui-knk
Copy link
Collaborator Author

yui-knk commented Feb 15, 2015

確認しました。ありがとうございました!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants