Displaying 1 result from an estimated 1 matches for "list_email".
Did you mean:
list_mail
2007 Apr 26
2
assert_select with respond_to JS or xhr?
Hi everyone,
I am a bit confused with xhr? and respond_to.
I have the folloing code in my view to update the ''emails'' ID
link_to_remote(image_tag("refresh"), :update => "emails",
:url => { :action => "list_emails" })
in the controller side i have somthing like :
[..]
respond_to do |type|
type.html { render :action ''list_emails'' }
type.js { render :partial => ''list_emails'' }
end
[..]
The partial returns html code such as
[..]<ul><li>...