Hi Tamer,
Please try adding the help string to config/locales/app.en.yml. For example:
en:
activerecord:
attribute_help:
user:
name: HELP for name
Regards,
Ignacio
El 03/12/13 22:50, Tamer Sherif escribió:
> Thank you Bryan, the placeholder worked. However the help text didn't.
> My code looks like this:
>
> <field-list: columns="3" skip="owner, registration_status,
> payment_received" >
> <name-view:><input placeholder="FOO"/></name-view:>
> <name-help:>HELP for name</name-help:>
> <name-label:>Full Name</name-label:>
> </field-list:>
>
> Do you happen to know why? I would like to display a help text under the
> field
>
> On Wednesday, February 27, 2013 4:28:01 PM UTC+2, Bryan Larsen wrote:
>
> In your DRYML, you can do something like this. This assumes that you
> are using the bootstrap theme.
>
> <field-list: fields="name, email_address, password,
> password_confirmation">
> <name-view:><input placeholder="FOO"/></name-view:>
> <name-help:>HELP for name</name-help:>
> </field-list:>
>
> I pushed a small bugfix for hobo_bootstrap, so make sure you're
> running version 1.0.0 of hobo_bootstrap, not a prerelease. You may
> need to get it from github, depending on how soon you get this email.
>
> Bryan
>
>
> On Mon, Feb 25, 2013 at 3:53 PM, Tamer Sherif <[email protected]
> <javascript:>> wrote:
> > Can someone please help me figure out how to add placeholder text
> to a field
> > inside a model, and I want to add some kind of help text beside or
> under the
> > field as well?
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups
> > "Hobo Users" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send an
> > email to [email protected] <javascript:>.
> > To post to this group, send email to [email protected]
> <javascript:>.
> > Visit this group at http://groups.google.com/group/hobousers?hl=en
> <http://groups.google.com/group/hobousers?hl=en>.
> > For more options, visit https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out>.
> >
> >
>
> --
> You received this message because you are subscribed to the Google
> Groups "Hobo Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/hobousers.
> For more options, visit https://groups.google.com/groups/opt_out.
--
Ignacio Huerta Arteche
http://www.ihuerta.net
Teléfono: 0034 645 70 77 35
Email realizado con software libre
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/groups/opt_out.