Skip to navigation
How to upload images with merb/ruby low traffic site?
07.12.13
Form/View:
Image
<%= @image.url %>
Controller: unless params[:bild][:tempfile] == nil FileUtils.mv params[:bild][:tempfile].path,"#{ Merb.root}/public/images/#{params[:bild]['filename']}" end
Reply
Anonymous
How to upload images with merb/ruby low traffic site?
Form/View:
Image
<%= @image.url %>
Controller: unless params[:bild][:tempfile] == nil FileUtils.mv params[:bild][:tempfile].path,"#{ Merb.root}/public/images/#{params[:bild]['filename']}" end
07.12.13
Reply
Anonymous
Information Epoch 1732427275
Prototype before polishing. Get it working before you optimize it.
Home
Notebook
Contact us