Skip to content

Instantly share code, notes, and snippets.

Created Mar 15, 2010
What would you like to do?
/ Although from the user's perspective we are requesting a "username", we'll use Twitter's nomenclature
/ for this field and call it screen_name in our code instead. By using the same names as the API you
/ interact with, you decrease the cognitive overhead of dealing with the API.
%form{:action => "/value", :method => "post"}
Enter your Twitter username:
%input{:name => "screen_name", :type => "text"}
%input{:type => "submit", :value => "Submit"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment