Displaying 2 results from an estimated 2 matches for "bildpfad".
2006 May 03
2
issue in uploading images
...def create
File.open(RAILS_ROOT + "
/public/images/#{@params[''picture''].original_filename}", "w") { |f|
f.write(@params["picture"].read) }
redirect_to :controller => ''admin'', :action => "new1",
:bildpfad=> @request.protocol + @request.host_with_port + "
/images/#{@params[''picture''].original_filename}"
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060503/566aea69/attachmen...
2006 Apr 17
8
file upload
This is probably me having an issue with the mvc way of living.. .I''m
used to perl/php scripting...
I''ve got a photo blog I''m making... and in past iterations of this
website, I''d just name the photos after the id of the entry. For
instance:
/photos/id.jpg
/photos/id_thumb.jpg
However, I''m having trouble finding an easy way to do this with rails.