-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Quiliro,

I don't think there's a column type "name". You need to create it like
a string, and then assign the "name" option:

  hobo generate resource person employee:string number:integer

Then edit the Person model and add the name attribute:

  employee :string, :name => true



Alternatively you can call the column "name", and thus you will not
need to mark it in the fields list:

  hobo generate resource person name:string number:integer

Warm regards,
Ignacio


El 08/07/14 21:17, Quiliro Ordóñez Baca escribió:
> Hi:
> 
> I am having an Invalid field type error upon migrating a newly
> generated resource on app "person" if I use :name or :title field
> types. Please clarify why. Here is the output.
> 
> quiliro@quiliro-Compaq-Presario-CQ60-Notebook-PC:~/seguridad$ hobo 
> generate resource person employee:name number:interger Hobo Command
> Line Interface 2.1.0 [deprecated] I18n.enforce_available_locales
> will default to true in the future. If you really want to skip
> validation of your locale you can set 
> I18n.enforce_available_locales = false to avoid this message. 
> create  app/controllers/people_controller.rb create
> app/helpers/people_helper.rb invoke  test_unit create
> test/helpers/people_helper_test.rb invoke  test_unit create
> test/controllers/people_controller_test.rb create
> app/models/person.rb invoke  test_unit create
> test/models/person_test.rb create    test/fixtures/people.yml gsub
> app/models/person.rb insert  app/models/person.rb 
> quiliro@quiliro-Compaq-Presario-CQ60-Notebook-PC:~/seguridad$ hobo 
> generate migration Hobo Command Line Interface 2.1.0 [deprecated]
> I18n.enforce_available_locales will default to true in the future.
> If you really want to skip validation of your locale you can set 
> I18n.enforce_available_locales = false to avoid this message. 
> Invalid field type: :name for Person.employee 
> quiliro@quiliro-Compaq-Presario-CQ60-Notebook-PC:~/seguridad$
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlO9Yo8ACgkQBPlUJ6RHaOQ8ZQCfZJMEb1060g/Nz8QkgJ6+Of4B
4bcAnjStSiDPcWxJw+WU3HkdLFdRZd/p
=bwrz
-----END PGP SIGNATURE-----

-- 
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/d/optout.

Reply via email to