From: Phlip Date: 2009-04-10T01:05:03+09:00 Subject: Re: HTML equivalent to my link_to_remote statement Taneal Bhandari wrote: > Phlip wrote: >> When your page renders (or when - ahem - your functional tests run), you >> should >> see your link_to_remote statement converted into an tag. >> >> What will you do with it now? > > Good call. I didn't even think of that. Basically, I'm using an rjs > page to swap out a bunch of html on my page and doing some hide/shows on > some divs. When I first run the page, I have a bunch of link_to_remote > calls on the page which render fine, but on the rjs page, I'm creating a > big string that I'm swapping out with the original html, which is why I > needed to write out my link_to_remote calls as tags on the rjs > page. But thanks for the tip and I'll remember to post to a more > appropriate forum next time (thought I was ok with this one, but guess > not). Thanks again! Call link_to_remote directly inside your RJS - that's what its for (And test it all with assert2's assert_rjs_. Google for that, with my street name)