rjs-file: javascript shown instead of executed - mime-type?

Hi. Using a rjs-file my browser shows the javascript-code instead of executing. Why? Is there a wrong mime-type configuration? Where to fix it? Thanks Jens

Hi. Using a rjs-file my browser shows the javascript-code instead of executing. Why?

Did you pass :update to link_to_remote/form_remote_for/etc... ?

Fred

Using rjs, he shouldn't have to.

I think this happens if one uses the non-ajax counterparts to call the
URL (ie link_to rather thank link_to_remote, etc.)

Julian.

Learn Ruby on Rails! CHECK OUT THE FREE VIDS (LIMITED TIME) VIDEO #3
OUT APRIL 6 http://sensei.zenunit.com/

Fred's point is that Jens should NOT use the :update option. If it's there... that's the source of the error.