ファイル内で、helper/posts_helper.rb次のようなメソッドを定義しています。
module PostsHelper
    def testing(test)
        "Yep its a #{test}"
    end
end
このテスト ヘルパーは、投稿ビュー内でのみ機能するはずです。しかし、それは私のアプリケーションの他のリソースのビューであっても、私のすべてのビューで機能します。私はこれを入れていませんapplication_helper.rb。なぜそれが起こるのですか?
これが私のapplication_controller.rb
class ApplicationController < ActionController::Base
  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception
end