Displaying 1 result from an estimated 1 matches for "new_credit_field".
2006 May 23
2
auto_complete_field help
...es after that and than either adds the UL or
just inserts
# a new li
def ajax_add_credit_to_form
@credit_number = (params[:credit_number]).to_i
render :update do |page|
if @credit_number == 0
page.replace_html ''credits_list'', :partial =>
''new_credit_field''
else
page.insert_html :bottom, ''the_credit_list'', :partial =>
''new_credit_field''
end
end
end
# Partial
# This is where I am running into issues
<% if @credit_number == 0 %>
<ul id="the_credit_list&quo...