search for: nocontrol

Displaying 1 result from an estimated 1 matches for "nocontrol".

Did you mean: nscontrol
2006 Apr 15
1
Right way to pass conditionals to partials
...39;'d like to control from the main template. These partials are templates that look similar in different contexts, but have different controls depending on where they''re being rendered. I tried locals, but the result looks ugly - I basically have to do this: <% if !defined?(nocontrols) && !nocontrols -> html to render controls <% end -> Then in my main template I call <% render(:partial => "partial", :locals => { :nocontrols => true }) > This works, but the convoluted if statements make me cringe. Plus, I''d have to specifi...