I use gem 'friendly_id', '~> 5.1.0'
but not any effect on my id.
this is my work:
model:
extend FriendlyId
friendly_id :company_name, use: :slugged
Controller:
@company = Company.friendly_id.find(params[:company_id])
View:
<%= company_path(:company_id => c.company_id) %>
Routes
get 'company/:company_id' => 'company#company', as: :company
Where is my problem?
I use also slug into the database table