Forum: Ruby on Rails Generating a textfield with an array as arguments

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
T-Parent (Guest)
on 2007-06-30 10:44
(Received via mailing list)
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',
              {: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,

This topic is locked and can not be replied to.