views:

21

answers:

0

Hi

I am using remote_form_for to submit image_tag, but I couldnt pass the image_path

I have used the code like

<% remote_form_for(:image_path, update => "image_area", 
   :url => {:action=>"show_image"}) do|f| %>

<%= image_tag @image.image.url(:large), :id => "show_image"%>
<%= submit_tag 'Add image'%>

When I use <%= f.image_tag(image) %> it gives error.

So, please guide me how I can take the image value to my controller