Skip to content

Instantly share code, notes, and snippets.

@Pistos
Created December 28, 2011 04:55
Show Gist options
  • Select an option

  • Save Pistos/1526384 to your computer and use it in GitHub Desktop.

Select an option

Save Pistos/1526384 to your computer and use it in GitHub Desktop.
require 'ramaze'
class MainController < Ramaze::Controller
map '/'
def index
if request.post?
@result = 'yo'
end
end
end
Ramaze.start :port => 7010
<form method="POST" action=".">
<input type="submit" value="Publish Now"/>
</form>
<textarea rows="40" cols="100">#{@result}</textarea>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment