Created
July 4, 2012 16:03
-
-
Save AdrienGiboire/3048057 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'sinatra/base' | |
require './models/data' | |
require './models/business' | |
class EphemereApplication < Sinatra::Base | |
get '/' do | |
business.display_home | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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