Rjs

Ok I am very new too this so I apologize if I do not explain myself
correctly. I have for the past day been trying to use respond_to to no
effect. Explicitly the respond_to |format|
format.js.

Now I know he problem has to do with the fact that there is both an
rhtml and a rjs with the same name. but I have found no reference for
how to formate respond_to correctly for js nor why this is a problem.
I have tried a regular link_to_remote with similar results.

example page.rhtml
contains
link_to_remote ‘?’, :url => { “action” => “page” }

it works if I change the name for the rjs…so it simply a matter of
duplication. But I can’t figure out what effecting rails to cause this
problem.

I would appreciate any help on this matter.