Topic: Render :template => Bullcrap!
I swear I must have some sort of mental block when it comes to the render statement. But doing my best to ignore my pride and be productive I'll allow you to glimpse my greatest brain failures and ask for your patience and help. I've bought the RJS manual and it has a table that lists the arguments that you can pass to render in a replace_html statement and the like. Included in that list is :template, and :action. However a statement such as this:
page.replace_html "main", :template => "projects/show"
Does not work. I get a ajax error in return saying
Type Error: html has no properties
If I pass render a string such as "this is urking me mightily" then it will work fine. I've also done this several times before using partials, but I don't want to throw something like an actions default rhtml template into a partial.
Last edited by circuitshaman (2006-08-21 16:32:33)
-SICP (Abelson, Sussman)