Project

General

Profile

Difference between 'include RoutesHelper' and 'helper :routes'

Added by Charlene Chen over 8 years ago

when I have looked into the file application_controller.rb in ./app/helpers/

there are two rows:

include RoutesHelper
helper :routes

why they were written like this? Are there any differences? Or they are the same?

Thanks