ruby - how can I make an input field "readonly" using haml? -
im haml newbie
im trying figure out how make html "input" field "id", readonly using haml.
the html, should read (not exact reflection)
but readonly value never comes through
%h2 sections = semantic_form_for @section |f| = f.inputs = f.input :id, :readonly => "true" <-----problem = f.input :title
what missing
try:
= f.input :id, input_html: { readonly: true }
Comments
Post a Comment