fousa tag

Current tag: tag

2010

11 APR

Humanize time field plugin

This is a small plugin to use time input in your textfields and convert them automatically to integer values in your database. HOWTO Clone the plugin into your vendor/plugins directory like this: git clone http://github.com/fousa/humanize-time-field.git Next you should define the columns that need time conversion in your model ob...

5 MAR

Overwrite custom field errors in Rails3

When using form helpers in your form to display your textfield you always have to match your CSS style to match with the div's that are added by Ruby on rails when an error occurs. This is the form helper: f.text_field :title This is the generated tag with the error div surrounding it: <div class="fieldWithErrors"&...

go to the top ↑ ← back to the blog