How can I display the user url input as a thumbnail?

orekPenoowema

New Member
I want to take from the user an image URL and on submit display a thumbnail of that image in the same pageHere is how i take the URL from the user\[code\]<%= form_for([@project, @project.uploads.build]) do |f| %> <div class="field"> <%= f.label :url %><br /> <%= f.text_field :url %> </div> <div class="actions"> <%= f.submit %> </div><% end %>\[/code\]then i display the URL in the same page\[code\]<p> <%= upload.url %> | <%= link_to 'Delete', [upload.project, upload], :confirm => 'Are you sure?', :method => :delete %> </p>\[/code\]But instead i want to display a thumbnail..How can I do that?
 
Back
Top