Displaying 1 result from an estimated 1 matches for "_where_clause".
Did you mean:
where_clause
2006 May 07
1
Clean incrementer across Ajax calls?
...help
if I give the example code.
So in my view.rhtml i have:
=== view.rhtml ===
<div id="where_clause_div">
<%= link_to_remote ''Add'',
{ :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'',...