oops, you don't need the signup override after all. just adding it to the params list is enough.
On May 20, 11:35 am, kevinpfromnm <[email protected]> wrote: > I did something like this already. this is what I did: > #added hobofield custom type > class TimeZone < String > COLUMN_TYPE = :string > HoboFields.register_type(:time_zone, self) > end > # add a tag for it > <def tag="input" for="TimeZone" attrs="name"> > <%= time_zone_select this, name, > ActiveSupport::TimeZone.us_zones, :default => this %> > </def> > > I didn't add it to the signup process but you could by adding it as a > param in the create lifecycle on the user and then adding the input > tag on the signup form. Note, I believe you need to do it in the page > view override and not in the application.dryml as a regular tag (some > bug referenced that I believe). I did this on the same example: > #app/views/users/signup.dryml > <signup-page> > <form:> > <field-list:> > <birthday-view:> > <input order="month,day,year" > start-year="&Time.now.year - 120" > end-year="&Time.now.year"/> > </birthday-view:> > </field-list:> > <after-field-list:> > <%= recaptcha_tags %> > </after-field-list:> > </form:> > </signup-page> > > # and the create in the model > create :signup, :available_to => "Guest", > :params => > [:name, :real_name, :birthday, :email_address, :password, > :password_confirmation], > ... > > hope that helps > > On May 20, 9:46 am, ChrisBee <[email protected]> wrote: > > > > > I have added a column time_zone to the user model. > > > Now I'd like every user that signs up to choose his time zone. How can > > I best integrate this into the signup form? And how can I get the time > > zone list selection (rails helper method time_zone_select) at all? > > > Any help is greatly appreciated! > > > Cheers, > > Chris > > > -- > > 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 > > athttp://groups.google.com/group/hobousers?hl=en. > > -- > 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 > athttp://groups.google.com/group/hobousers?hl=en. -- 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.
