Flowdock
method

input

Importance_1
v2.0.3 - Show latest stable - 0 notes - Class: ActionView::Helpers::ActiveRecordHelper
input(record_name, method, options = {}) public

Returns a default input tag for the type of object returned by the method. For example, let’s say you have a model that has an attribute title of type VARCHAR column, and this instance 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.