Created
June 3, 2010 06:41
-
-
Save jasim/423571 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
# Main sinatra app | |
require 'sinatra' | |
require 'activerecord' | |
require 'activesupport' | |
include ActionView::Helpers::DateHelper # add the required helpers here. | |
require 'controllers.rb' | |
# controllers.rb | |
require 'controllers/employee.rb' | |
require 'controllers/customer.rb' | |
# controllers/employee.rb | |
get '/employee' do | |
#.. | |
end | |
get '/employee/:id' do | |
#.. | |
end | |
get '/employee/:id/edit' do | |
#.. | |
end | |
post '/employee/:id' do | |
#.. | |
end | |
# controllers/customers.rb | |
# similar routes here. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment