Displaying 1 result from an estimated 1 matches for "ajax_controller".
2005 Dec 23
0
adding items to a particular invoice on the same page
...lt;input type="text" id="invoice_inv_number" name="invoice[inv_number]" >
<li>Original item... please add more!</li>
</ul>
<%= submit_tag ''Update'' %>
</form>
</body>
</html>
Controller Ajax_controller.rb
lass AjaxController < ApplicationController
def index
$counter =1
$count = 0
end
def add_new_item
render(:partial => ''invoiceitems'', :collection => @invoiceitems )
end
def save_items
# render_text params[:invoiceitem]
# render_text param...