/app/helpers/url_helpers.rb

how do i use this file?

start writing method inside your url module.

module UrlHelper

def url
#…

end
end

``

These methods then can be called from your view. we use helper method to reduce the noise in view files.

Dude you really need to read a book or learn how to start using google. You ask every single question of the most simple usage of the framework.

You can learn here: http://bit.ly/2tvfGTT