RailsCasts Pro episodes are now free!

Learn more or hide this

Chris Arndt's Profile

GitHub User: Chrisgo-75

Comments by Chris Arndt

Avatar

I needed to use radio_button_tag and got it to work using Ryan's example with:
File: people_datatable.rb

ruby
delegate :params, :h, :link_to, :radio_button_tag, :number_to_currency, to: :@view

private

  def data
    people.map do |person|
      [
          radio_button_tag('person', person.id),
          h(person.last_name),
          h(person.first_name)
      ]
    end
  end