Hey my favorite devs, how's it going?
Hope you're good.
Let's get down to business. Shall we?
FriendlyId is an amazing Ruby gem that is responsible for slugging and permalink plugins for Active Record. It lets you create pretty URLs and work with human-friendly strings as if they were numeric ids.
This is the usual error message:
uninitialized constant #<Class:0x00007f616c033c50>::FriendlyId
Here, my environment configuration is with
Rails 184.108.40.206 and
1. Check if you have a typo
Come back to the
FriendlyId's github page and follow the steps again, I mean, check your controller and model code.
2. Restart the Rails server
On console, run
CTRL + Cto stop the server (in case your server is running);
rails sto start the server again
For me, the solution was this.
That's all. Hope you guys liked it. Let me know if you need any help.