Wilson Muh


10 Experience
0 Lessons Completed
0 Questions Solved


Posted in Pretty urls with FriendlyID Discussion

Say for example I have a reservations model nested inside a rooms model. After implementing friendly_id, my reservations try to save as the room's friendly_id slug instead of the room's ID (integer). How do I make it save by the integer instead?


logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.