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

Hi Afsaneh,

You can create a virtual attribute in your user model, defining two
methods: one when you are reading and one when you are writing. I used
this last year in a Hobo 1.0.1 app, I hope it's still valid:

  def address
    if active_address
      active_address.address
    else
      ''
    end
  end
  def address=(address)
    if active_address
      active_address.update_attribute(:address, address)
    end
  end

Regards,
Ignacio

El 05/06/12 15:05, Afsaneh escribió:
> Hi, I am using Hobo's signup page for my application with some
> additional data fields regarding address. I wonder how can I store
> data collected in Sign up page in more than one table? User table &
> property table.
> 
> 
> any idea how to do it? Afsaneh
> 

- -- 
Ignacio Huerta Arteche
http://www.ihuerta.net
Teléfono: 0034 645 70 77 35
Email realizado con software libre
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/OFOMACgkQBPlUJ6RHaORedACgkHOSaBZqkukBdEwlgWqYuede
ikgAn0ow5HTeY8voSSdK5YCzbt1RikIs
=WaHc
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to