Generating a textfield with an array as arguments

Hi everyone,

I have an array which looks like this ( output taken from
debug(display_options) ):


  • rows: “5”
  • cols: “40”

I am trying to generate a textfield using the ‘text_field’ helper
function and my array (let’s call it display_options):

text_field ‘field’,
field.id,
{:value => field.value, display_options}

I tried using the splat operator ( *display_options), but it gives me
a whole bunch of errors.

Anyone knows how to do this?

Thank you,

T-Parent

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs