app/controllers/invoices_controller.rb
#
# Renders AJAX form for creating an invoice.
#
Renders AJAX form for creating an invoice.
Renders AJAX form for creating an invoice .
def add_new
    @invoice = Invoice.new
    @invoice.client_id =  params[:client_id]
    render :partial => '/invoices/add_new'
  end
def add_new @invoice = Invoice . new @invoice . client_id = params [ :client_id ] render :partial => '/invoices/add_new' end
Renders AJAX form for creating an invoice.
Renders AJAX form for creating an invoice .