search for: contentpo

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

Did you mean: contentpv
2006 Aug 12
1
Check a boolean in the view
...r the code below im checking if x=y and if so then render a partial and set a flag called check = true. in the else then i want to output some text and then reset the boolean back to false. Can this be done? Whats the best way to this? <% @contents.each do |content| %> <% if contentpos.pos == content.pos %> <%= render :partial => ''content'', :object => content %> <% check = true %> <% else %> <% if check == true %> <p>True</p> <% check = fals...