Displaying 1 result from an estimated 1 matches for "credit_number".
2006 May 23
2
auto_complete_field help
...I am
trying to do)
#View
# This is the first link when the form is first generated there are
no text fields for authors (it is not required to add one)
<%= link_to_remote("Add", :url => {:controller => "book", :action =>
"ajax_add_credit_to_form", :credit_number => 0}) %>
# Controller
#This action figures out if it is the first time I am adding an
author or subsequent times 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 |pa...