Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rubygems'
- require 'sinatra'
- get '/foo' do
- "<form method='post' action='/foo'>" +
- "<textarea name='bar'></textarea><br>" +
- "<input type='submit' value='Go!'></form>"
- end
- post '/foo' do
- redirect params[:bar]
- end
Add Comment
Please, Sign In to add comment