Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Alex Alex
Courses Plus Student 2,176 PointsDevise invitable
Hello,
Does anyone know a tutorial on how to implement devise with devise invitable in order to allow users to invite other users? I read their documentation, but I am not convinced on how to create a view which will allow users to invite other users.
Thank you
2 Answers
Alex Alex
Courses Plus Student 2,176 PointsIn the end I did something, but I altered my Users table, and added few columns for storing t.string "invitation_token", :limit => 60 t.datetime "invitation_sent_at" t.datetime "invitation_accepted_at" t.integer "invitation_limit" t.integer "invited_by_id" t.string "invited_by_type"
Is this a good approach, or should I have a different table storing those and linking with the User table?
Thank you
Jason Seifer
Treehouse Guest TeacherHey Alex Alex I would probably put that in a separate table. It's different information so it could be considered its own entity.