Add authenticity_token: true to multipart forms
Rails 4 does not generate token by default
It fixes bug when you get to sign-in page after trying to upload image
with comment
Signed-off-by: NDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
想要评论请 注册 或 登录