public
Created

Sinatra helper

  • Download Gist
helper.rb
Ruby
1 2 3 4 5 6 7
helpers do
def formatter(page)
formatted = ""
formatted = page.gsub(/[-]/, ' ').capitalize
return formatted
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.