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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
assuming an image_submit_tag helper didn''t work. On Jul 1, 4:38 am, Suneeta Km <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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 > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> 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''}) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---