Hobo Cookbook

View Source

Rapid

<editor>

Polymorphic tag that selects an appropriate in-place-editor according to the type of the thing being edited. <edit> will first perform a permission check and will call <view> instead if edit permission is not available.

Show Source

<editor for='HoboFields::EnumString'>

Provides an editor that uses a <select> menu. Uses the <string-select-editor> tag.

Show Source

<editor for='string'>

Provides a simple Scriptaculous in-place-editor that uses an <input type='text'>

Show Source

<editor for='text'>

Provides a simple Scriptaculous in-place-editor that uses a <textarea>

Show Source

<editor for='html'>

Provides a simple Scriptaculous in-place-editor that uses a <textarea>. A JavaScript hook is available in order to replace the simple textarea with a rich-text editor. For an example, see the hoboyui plugin

This tag does not sanitize HTML; this is provided by HtmlString before saving to the database.

Show Source

<editor for='datetime'>

Provides a simple Scriptaculous in-place-editor that uses an <input type='text'>

Show Source

<editor for='date'>

Provides a simple Scriptaculous in-place-editor that uses an <input type='text'>

Show Source

<editor for='integer'>

Provides a simple Scriptaculous in-place-editor that uses an <input type='integer'>

Show Source

<editor for='float'>

Provides a simple Scriptaculous in-place-editor that uses an <input type='text'>

Show Source

<editor for='password'>

Raises an error - passwords cannot be edited in place

Show Source

<editor for='boolean'>

calls <boolean-checkbox-editor>

Show Source

<editor for='big_integer'>

Provides a simple Scriptaculous in-place-editor that uses an <input type='text'>

Show Source

<editor for='BigDecimal'>

Provides a simple Scriptaculous in-place-editor that uses an <input type='BigDecimal'>

Show Source

<editor for='HoboFields::Types::EnumString'>

Provides an editor that uses a <select> menu. Uses the <string-select-editor> tag.

Show Source

Comments

No Comments to display