“Undefined local variable or method” error when using commontator gem for comments
I made a website in which people can share photo's (they are called pins in my code). I wanted to add a system in which, when someone clicks on the picture, they can comment on it. I decided to use the commontator gem and I installed it. My problem is that the commenting system does not show up below posts like it's supposed to and I get an undefined local variable or method error for my pins controller. routes.rb Photo::Application.routes.draw do resources :pins devise_for :users root "pins#index" get "about" => "pages#about" mount Commontator::Engine => '/commontator' show.html.erb <%= link