[Rails] Re: Adding a custom select to omniauth register form

2012-01-18 Thread Bob Fleming
Davis wrote: > On Jan 18, 2012, at 3:20 PM, Bob Fleming wrote: > > > Hi Walter, > > > Thanks for the email. > > > I forgot to mention that despite the error the user and identity are > > created. Just that the role field is blank in the database and you get > > t

[Rails] Re: Adding a custom select to omniauth register form

2012-01-18 Thread Bob Fleming
so I can answer your question. If you can help with this that would be great - I'll do some googling in the meantime. Cheers. On Jan 19, 8:21 am, Walter Lee Davis wrote: > On Jan 17, 2012, at 10:26 PM, Bob Fleming wrote: > > > > > > > > > > > Hi, > >

[Rails] Adding a custom select to omniauth register form

2012-01-18 Thread Bob Fleming
Hi, I'm creating a rails app using omniauth 1.0.1 on Rails 3.1.3 and ruby 1.9.2 I'm having trouble adding a select field that populates from a class constant in my user model. Here's my model: class User < ActiveRecord::Base ROLES = ["Customer","Service Supplier"] has_many :leads valida