As an example, here's the code in my controller:
def destroy
@rehearsal = Rehearsal.find(params[:id])
render :update do |page|
page.call "delreh", "[email protected]}"
end
end
and after this method is called, this is what I see on the browser:
try {
delreh("rehearsal_15");
} catch (e) { alert('RJS error:\n\n' + e.toString());
alert('delreh(\"rehearsal_15\");'); throw e }
anyone please help. Thanks!
On Apr 14, 7:48 pm, mstoth <[email protected]> wrote:
> I have looked around and seen similar problems but have not yet found
> a solution to this.
>
> Relatively new to RoR, I am trying to use render :update to modify the
> displayed page in the browser.
>
> No matter what I put in the render :update block, all I see is the
> code wrapped in the 'try' statement that the generator creates. It's
> not executed, it's just displayed on the browser. I'm sure there is
> something basic I'm missing here.
>
> Any insight?
>
> Thanks,
> Michael
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.