How to use the slug from Friendly_id in a nested route?
问题 I am having a hard time making the slug from Friendly_id in a nested route when editing and creating? the routes look great for show. http://0.0.0.0:3000/test/tester2 This is the URL I am getting when i try to edit tester2 is: http://0.0.0.0:3000/2/tester2/edit What i would like to see is: http://0.0.0.0:3000/test/tester2/edit Here is my code. team.rb class Team < ActiveRecord::Base extend FriendlyId friendly_id :name, use: :slugged has_many :videos ... end video.rb class Video < ActiveRecord