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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -