Skip to content

Commit

Permalink
I am awesome
Browse files Browse the repository at this point in the history
  • Loading branch information
knowtheory committed Mar 10, 2011
1 parent 258e7c9 commit e8fe027
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions confoosed.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
require File.join(File.dirname(__FILE__), 'init')

get "/" do
"<html><h1>Hello! Are you Confoosed?</h1></html>"
"<html><h1>Hello! Are you Confoosed?</h1><p><a href=\"#{url("speakers/#{speaker.id}")}\">Speakers</a></p></html>"
end

get "/schedule/?" do

end

get "/sessions/?" do
end

get "/sessions/:id?" do
get "/sessions/:id" do
@session = Confoosed::Session.first(:id => params[:id])
erb :session, :locals => { :session => @session }
end
Expand All @@ -24,9 +23,3 @@
@speaker = Confoosed::Speaker.first(:id=>params[:id])
erb :speaker, :locals => { :speaker => @speaker }
end

not_found do
end

error do
end

0 comments on commit e8fe027

Please sign in to comment.