rjs not executing?

Hi,

I'm trying to execute a .rjs, but instead of executing the javascript code, the javascript code is shown on the html. Does any one know why?

Do you render with :layout => false ?

Like:   render :template => 'logi/ajax_vote',       :layout => false

Wybo

No, you need to do:

class MainController def openAdd render :partial => ‘openAdd’ end end

and rename openAdd.rjs to _openAdd.rjs.

Jason