I have lot of helpers in my main Sinatra project_name.rb and I want to remove them to the external file, what is the best practice to do that ?
from ./preject_na
Just as you said it yourself:
Move the helpers block into another file and require it where you need.
helpers
require
#helpers.rb helpers do ... end #project_name.rb require 'path/to/helpers.rb'