Submit_to_remote with an image_tag

Hi…

I’m using submit_to_remote,

<%= submit_to_remote ‘save_btn’, ‘Save’,
:url => { :controller => ‘ci’, :action =>
‘edit_ci_functional_spec’, :ci => @ci, :from => ‘show’ },
:html => {:class => ‘itilbutton1’}%>

Now I want to use an image instead of ‘Save’. How can I use image_tag
with submit_to_remote? Please help.

Thanks
Regards
Suneeta

assuming an image_submit_tag helper didn’t work.

On Jul 1, 4:38 am, Suneeta Km [email protected]

I think you would want to use a,
remote_form_tag
with a image_submit_tag inside of it.

There might be a more efficient way, but that works at least.

Now I want to use an image instead of ‘Save’. How can I use image_tag
with submit_to_remote? Please help.

You can try with
link_to_remote(image_tag(‘path/to/image’), :url => {:action =>
‘your_action’})

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs