Ruby on Rails latest stable (v4.2.7) - 0 notes - Class: ActionView::Helpers::ActiveRecordHelper

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

input(record_name, method, options = {}) public

Returns a default input tag for the type of object returned by the method. For example, if @post has an attribute title mapped to a VARCHAR column that holds "Hello World":

  input("post", "title")
  # => <input id="post_title" name="post[title]" size="30" type="text" value="Hello World" />
Show source
Register or log in to add new notes.