```ruby
get '/surveys' do
  @surveys = Survey.all
  erb :"surveys/index"
end

get '/surveys/new' do
  erb :"surveys/new"
end

post '/surveys' do
  @survey = Survey.new(params[:survey])
  if @survey.save
    # redirect'/questions/new'
  else
    @error = @survey.errors.full_messages
    erb :'/survey/new'
  end
end

get '/surveys/:id' do
  @survey = Survey.find(params[:id])
  erb :"surveys/show"
end```

Add routes for questions and choices
user
```ruby
get '/surveys' do
  @surveys = Survey.all
  erb :"surveys/index"
end

get '/surveys/new' do
  erb :"surveys/new"
end

post '/surveys' do
  @survey = Survey.new(params[:survey])
  if @survey.save
    erb :'/questions/new'
  else
    @errors = @survey.errors.full_messages
    erb :'/survey/new'
  end
end

get '/surveys/:id' do
  @survey = Survey.find(params[:id])
  erb :"surveys/show"
end```
assistant