Displaying 1 result from an estimated 1 matches for "clause_id".
Did you mean:
cause_id
2006 May 07
1
Clean incrementer across Ajax calls?
...{ :update => ''where_clause_div'',
:url => { :action => :make_where_clause },
:position => :after} %><br />
</div>
And in my controller I have:
=== controller.rb ===
...
def make_where_clause
@where_clause_id = 1 unless @where_clause_id; # This is always 1
render :partial => ''where_clause'',
:locals => { :clause_id => @where_clause_id }
@where_clause_id += 1
end
...
And the partial is:
=== _where_clause.rhtml ===
<div class="where_clause" id=&...