Skip to content

Instantly share code, notes, and snippets.

@levicole
Created November 15, 2008 20:39
Show Gist options
  • Save levicole/25320 to your computer and use it in GitHub Desktop.
Save levicole/25320 to your computer and use it in GitHub Desktop.
<%= form :action => resource(:uploads) do %>
<%= file_field :name => "file", :label => "file" %><br />
<%= submit "send" %>
<% end =%>
merb : worker (port 4000) ~ Routed to: {"format"=>nil, "action"=>"create", "controller"=>"uploads", "file"=>"\377???JFIF\000\001\001\000\000\001\000\001\000\000\377?\204\000\003\002\002\003\002\002\003\003\003\003\004\003\003\004\005\b\005\005\004\004\005\n\a\a\006\b\f\n\f\f\v\n\v\v\r\016\022\020\r\016\021\016\v\v\020\026\020\021\023\024\025\025\025\f\017\027\030\026\024\030\022\024\025\024\001\003\004\004\005\004\005\t\005\005\t\024\r\v\r\024\024\024\024\024\024\024\024\024\024\024\024\024\02..."
# obviously shortened the output...
class Uploads < Application
def index
render
end
def create(file)
file.inspect
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment