Skip to content

Instantly share code, notes, and snippets.

@blake41
Last active September 10, 2015 13:31
Show Gist options
  • Save blake41/a70dad028e6fb018e692 to your computer and use it in GitHub Desktop.
Save blake41/a70dad028e6fb018e692 to your computer and use it in GitHub Desktop.
forms are HTML and follow HTTP conventions
forms are the combination of a get and a post
in sinatra we mainly build forms manually (in HTML)
in rails we mainly use "form helpers" to dynamically create forms
it's only the HTML you write that matters
the most important things about a form are the name attributes of the inputs and the action of the form.
the action of the form tells you where the form will post.
How does Sinatra/Rails parse query parameters (hint: it's really Rack doing it)?
http://spin.atomicobject.com/2012/07/11/get-and-post-parameter-parsing-in-rails-2/
http://codefol.io/posts/How-Does-Rack-Parse-Query-Params-With-parse-nested-query
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment