Ilia Aptsiauri Ilia Aptsiauri - 8 months ago 37
Ruby Question

how can I render datalist tag with slim-lang

To render views in the Ruby on Rails application I am using slim-lang, in one of my views I would like to have the

tag, with pre-field options how this will be possible with slim-lang.


= datalist :languages, options_for_select(@languages)


Slim will simply convert whatever you pass to HTML, have you tried:

  - ["Internet Explorer", "Firefox"].each do |browser|
    option value=browser