Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想生成这样的输入字段。我怎样才能?
我想通了。但是有什么聪明的方法可以为rails做到这一点吗?
<input type="text" name="url" value="<%= user_path(@user) %>>">
text_field_tag 'url', user_path(@user) text_field_tag(name, value = nil, options = {})
使用 rails helper 来做到这一点。