Skip to content

Instantly share code, notes, and snippets.

@TakuyaHarayama
Last active June 7, 2017 16:15
Show Gist options
  • Save TakuyaHarayama/4eb43280f6b438567acc218858f7b698 to your computer and use it in GitHub Desktop.
Save TakuyaHarayama/4eb43280f6b438567acc218858f7b698 to your computer and use it in GitHub Desktop.
namespace使ったりmodule使ったり特定のアクションを指定するリンク生成
= link_to [:edit, :admin, :hoge, @user, @item]
# /admin/hoge/users/@user.id/items/@item.id/edit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment