苑畅
Joined
11,340 Experience
113 Lessons Completed
0 Questions Solved
Activity
Posted in User Interaction With Ember Discussion
when you create rails project,you should use rails new project_name --api
it will not have verify_authenticity_token
I click /posts/1/edit when I am not login. it will require me to login. when I login in.I can't redirect_to /posts/1/edit
I can understand this episode.But I have a question.
if I add this code to posts_controller.rb. how to redirect the current page after we login
# posts_controller.rb
before_action :authenticate_user!, except: [:index, :show]
Posted in Liking Posts Discussion
append
has_many :likes
to user.rb