Benjamin Harris


20 Experience
0 Lessons Completed
0 Questions Solved


Chris, thank you for the quick response. It does make sense and I will give your recommendation a try tonight.

Also, you are correct. I am going to set up the relationship in which the customers can only review the service providers.

Thanks again!

Chris - just joined gorails. This is awesome! I am new to rails (coding in general) and was watching railscasts, but the videos seem outdated. I just want to make sure I fully understand you solution. I have two types of User Models - Customers and Service Providers. I am trying to figure out how to create two separate models with devise. I tried to do a polymorphic association and was able to get it to work in the rails console, but when it came to manipulating the code on the front end with devise, I could not get it to work. An important feature is for Customers to be able to write reviews for the Service Provider. If I go the route of using Devise and the Pundit gem, will I be able to do utilize that feature? If I did the separate model option and used point #1, how would I do the separate URL? Thank you in advance for your help Chris. Any advice is greatly appreciated!

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2023 GoRails, LLC. All rights reserved.