search for: update_charg

Displaying 3 results from an estimated 3 matches for "update_charg".

Did you mean: update_card
2006 Jul 14
3
compare two tables and find the difference?
...also need to dedupe what ends up in my final collection after the find_by_sql query, but I am not sure how to go about this. Is there a better way to do this? Any suggestions? My view takes the 3 columns from the TableA records and presents them for editing before they are added to TableB. The update_charges.rhtml view: <h2>Add missing records to charges table</h2> <%= start_form_tag %> <table> <th>Charge id number</th> <th>Charge name</th> <th>Classification level</th> <%= render :partial => ''charge'', :collec...
2006 Jul 17
0
collection_select help
...quot;, @charge_types, :id, :full_name %> but that doesn''t work either. @charges contains multiple records obtained from a find_by_sql query. each record has 3 fields: charge_name, charge_id_number, offense_level @charge_type.id should be equal to the @charge.offense_level the view - update_charges.rhtml: <h2>Add missing records to charges table</h2> <%= start_form_tag %> <table> <th>Charge id number</th> <th>Charge name</th> <th>Classification level</th> <%= render :partial => ''charge'', :collection...
2006 Jul 28
1
How do I get an original file name from an upload using file_field?
...ently have... In the controller: def upload ... file_contents = params[:document][:file] FasterCSV.parse(file_contents) do |row| result = Source.create_from_csv_array(row) logger.error(result.inspect) if result.kind_of?(Exception) end redirect_to :action => ''update_charges'' end In the view: <h2>Import CSV file</h2> <%= start_form_tag( { :action => ''upload'' }, { :multipart => true } ) %> <label for="document_file">Select .CSV file</label><br/> <%= file_field ''documen...