Skip to content

Instantly share code, notes, and snippets.

@furu furu/gist:6681296

Last active Dec 23, 2015
Embed
What would you like to do?
# こういうの迷う
get '/foo' do
return '' unless User.exists?(id: params[:id])
# 以下処理...
response
end
get '/foo' do
if User.exists?(id: params[:id])
# 何か処理...
return response
else
return ''
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.