Andrew Kelley

Joined

590 Experience
5 Lessons Completed
0 Questions Solved

Activity

Posted in Realtime Nested Comments: Part 3 Discussion

<%= render comment_with_replies, current_user: current_user %>

if current_user.present?

Posted in Realtime Nested Comments: Part 3 Discussion

Did you pass the current_user to the partial?

<%= render comment, current_user: current_user %>

Posted in Realtime Nested Comments: Part 3 Discussion

For anyone else that is hitting this issue, you'll want to edit config/environment/development.rb to include:

config.action_controller.default_url_options = { host: "localhost", port: ENV.fetch("PORT", 3000).to_i }

Posted in Video Hosting

What does GoRails use to host its private videos?

Posted in Russian Doll Caching with Rails 5 Discussion

How would I cache content different for non-logged in users, logged in users, and the post owner? For example, Facebook "friends" can see your private posts.