#blogs_controller.rb ... def foo "bar" end ... helper_method :fooจากนั้นทดลองเรียกใช้ในหน้า view
#index.html.erb
ตอนเรียกที่หน้า browser จะมีคำว่า bar ขึ้นมา แต่ถ้าไม่ใช้ helper_method มันจะขึ้น undefined local variable or method `foo' for # เพราะ rails หา method foo ไม่เจอ