hashid-rails icon indicating copy to clipboard operation
hashid-rails copied to clipboard

Use Hashids (http://hashids.org/ruby/) in your Rails app ActiveRecord models.

Results 15 hashid-rails issues
Sort by recently updated
recently updated
newest added

The original code was always overriding the "pepper" value with `table_name`, so it didn't matter what you set that value to in the config. The config's "pepper" value should be...

Rails 6.1 support added to the following PR. https://github.com/jcypret/hashid-rails/pull/79 Please review and merge.

If you have a has_many association where the parent does not use hashids, find through the association doesn't return the associated record. I added a failing test case to demonstrate....

bug

I ran into this rare issue where I have a model `PlaylistTrack` and when I call `find(id)` it throws this error: `ArgumentError: invalid range "r-0" in string transliteration`. The error...

Hi, thanks for the excellent gem! Unfortunately, after i upgraded to Rails 6.1 the overriding methods don't work for me any more. Accessing via .hashid still works. I don't think...

Hi Folks I've created a class that decodes ids for inbound Rails param hashes. You use it like this... ``` class PostsController < ApplicationController ... def post_params p = params.require(:post).permit(...)...

I have been trying with the new `hashid_config`, as I have just renamed a table that I has using with `hashid-rails` setting the pepper on the model. I love the...

The ability to set `hashid` to something else would be a nice addition to config.

Hey there, nice to see hashid turning into its own rails gem. But what about ```form_for``` and ```form_with``` helpers in Rails? If i want to obscure ID's within URL's it...

enhancement