Ok, please disregard myn posting, I figured out that render :update is
for use in the controller itself, not in the rjs.
Dino
On Mar 12, 10:14 am, "dino d."
<dinodorr...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
wrote:> Hi-
>
> Just trying to confirm my understanding here. In Rails 2.02, all I
> have to do to fire off an RJS file is to simply name it the same as
> the action (plus .js.rjs) right?
>
> So in my view, if I have:
>
> <%= link_to_remote "Alert", :url =>{:action =>
''do_alert''} %>
>
> and if I just create a file called do_alert.js.rjs like this:
>
> render :update do |page|
> page.alert(''hello'')
> end
>
> should this work? It doesn''t. The log file says missing
template,
> and is trying to render the html.erb file for the controller.
>
> It''s not clear to me what render :update does, versus simply
calling
> page.alert. Anyone have a good reference to point me in the right
> direction?
>
> Thanks for any help,
> Dino
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---