Skip to content

Instantly share code, notes, and snippets.

@adriand adriand/form.haml
Created Mar 15, 2010

Embed
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
You can’t perform that action at this time.