Open skorth opened 6 years ago
Hi @skorth. Thanks for bringing this up! I was able to recreate using the view helper dom_id(@model, :action)
. Hadn't considered that scenario before.
Looks like overriding to_key
instead of to_param
would sort things out, but need to review typical usage. It makes sense conceptually that the model's key would be the hashid, not the database id.
@jcypret Any updated thoughts on this topic?
Hey there,
nice to see hashid turning into its own rails gem. But what about
form_for
andform_with
helpers in Rails? If i want to obscure ID's within URL's it works fine. Usingform_for
would generate its CLASS and ID automatically by usingto_key
and reveal the original ID within the DOM. What do you think, is that something that should be addressed?