method
input
v1.0.0 -
Show latest stable
- Class:
ActionView::Helpers::ActiveRecordHelper
input(record_name, method, options = {})public
Returns a default input tag for the type of object returned by the method. Example (title is a VARCHAR column and holds "Hello World"):
input("post", "title") => <input id="post_title" name="post[title]" size="30" type="text" value="Hello World" />