Displaying 2 results from an estimated 2 matches for "chefck".
Did you mean:
check
2006 Apr 04
4
checking existence of a partial
...r the existence of a partial before
displaying it?
I have some code that creates a dynamic partial depending on the city a
particular object is located in. There are some cities that do NOT have
partials defined for them, but I still want the overall page to
display. Is there a way to either chefck for existence before
displaying (enclosed in an if statement?) or to tell the partial to
skip if it cannot find the file?
<%= render :partial => ''listing/partials/additional_'' + @city %>
Thanks,
Mark
2006 Apr 03
3
render :partial + redirect_to :controller
This is of course disallowed, which I discovered only after nearly
completing my spanking new ajaxified UI. What is the motivation behind
this, and what is the best workaround?
This UI does a scriptaculous drag-and-drop of items from a first div
(div1) over to a second div (div2), which triggers the contents of div2
to be updated to reflect the drop. No prob, thus far. But then the