-
Notifications
You must be signed in to change notification settings - Fork 5
Home
scottsampson edited this page Mar 23, 2011
·
7 revisions
How to approach certain problems.
- How do you add additional fields to the database from your oauth calls?
- Create a migration and add your fields to the oauth_profiles table
- Go to config/initializers/devise.rb and find the Warden::OAuth.access_token_user_finder for your oauth client
- Add your api call and/or add the fields to the options hash that you want to save.
- How do I add additional fields to the registration form
- If you have not ran devisable yet, the -e option will add the fields to the table
- If you have already run devisable, you will need to create a migration and add the additional fields to the user table
- Edit app/views/registrations/new.html.erb and add the fields to the form
- You will probably also want to edit the app/views/registrations/edit.html.erb form as well.
- You will probably want to edit the the app/views/users/show too if you are using it for a profile page.
Please add more problems above and we will do our best to answer them.