Without using any plugins? You're going to have a fair bit of
trouble :) Plugins are very helpful for that kind of thing.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this
Download paperclip or attachment fu and see the code.
Ramon Tayag
On Mon, Dec 22, 2008 at 9:46 AM, Ishara Gunathilake
wrote:
> does anyone know any code for upload images and display it on the web
> page...without
> using any plugins,,,i have found more code segments but they weren't
> work,,
the view:
<% form_for(@user, :url => (@edition ? user_path() :
user_path), :method => :put, :html => {:multipart => true}) do |f| %>
<%= f.file_field(:user_image_file) %>
<%= submit_tag('Save') %>
<% end %>
in the controller:
if params[:user][
3 matches
Mail list logo