All pastes #953833 Raw Edit

jramboo

public text v1 · immutable
#953833 ·published 2008-03-23 12:12 UTC
rendered paste body
In 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"}]