Skip to content

Instantly share code, notes, and snippets.

@AdrienGiboire
Created July 4, 2012 16:03
Show Gist options
  • Save AdrienGiboire/3048057 to your computer and use it in GitHub Desktop.
Save AdrienGiboire/3048057 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'sinatra/base'
require './models/data'
require './models/business'
class EphemereApplication < Sinatra::Base
get '/' do
business.display_home
end
end
class Business
def display_home
erb :home # This raises "undefined method `erb' for #<Business:0x007ffd03c6c7c8>"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment