Compare commits

..

No commits in common. "4503bc63435d19c9fab0d68146ecd6be48b07c42" and "7db866684a424c91fe734a8d79da23846ab78ad0" have entirely different histories.

16
app.rb
View file

@ -22,21 +22,5 @@ class App < Roda
# renders index.erb inside layout.erb # renders index.erb inside layout.erb
view :index view :index
end end
r.on 'assistants' do
r.get 'new' do
@page_title = 'Create New Assistant'
@assistant = Assistant.new
view :edit
end
r.post do
@assistant = Assistant.new(r.params)
if @assistant.save
r.redirect '/' # change to just r.redirect when get a host.org/assistants page up
else
r.halt(404)
end
end
end
end end
end end