jramboo
public text v1 · immutableIn View 1
- for @entry in @entries
- fields_for "entry[]" do |f|
%tr{:class => @entry.rowclass}
%td= f.check_box :import
%td= f.text_field :description, :size=>60
View 1 goes to def preview
def preview
puts "INSPECT: " + params[:entry].inspect
...
In the console:
INSPECT: [{"description"=>"Description", "import"=>"0"}, {"import"=>"1"}, {"description"=>"Credit Card Payment", "import"=>"0"}]