Re: rjs not executing?

Jason Roelofs
Wed, 24 Jan 2007 18:06:55 -0000

No, you need to do:

class MainController
  def openAdd
    render :partial => ''openAdd''
  end
end

and rename openAdd.rjs to _openAdd.rjs.

Jason

On 1/24/07, Wybo Wiersma <wybo-T49n2wj3Ml5g9hUCZPvPmw@public.gmane.org>
wrote:
>
>
> > 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
>
> > thanks you very much
> >
> > Sayoyo
>
> >