【发布时间】:2018-09-28 20:01:13
【问题描述】:
当我尝试使用 value 在我的输入标签中显示一个人的名字时,只要有空格,这个名字就会被截断。所以当它应该说 John Doe 时,输入只显示 John。有谁知道为什么它会在我的 Rails 应用程序中这样做?数据库是正确的,如果我使用标签,一切都会正确显示。
form class="panel data-abide" action="" id="form1">
<fieldset >
<legend>Please Enter the Information Below</legend>
<div class="row">
<div class="large-4 columns">
<label>Adjuster's Name
<input class="adjustorInfo" value=<%= @adjuster.adjuster_name %>/>
</label>
</div>
</div>
【问题讨论】:
标签: javascript ruby-on-rails ruby forms erb