permalink_fu icon indicating copy to clipboard operation
permalink_fu copied to clipboard

:param => true doesn't work on rails3

Open andreapavoni opened this issue 14 years ago • 2 comments

used this line in a model: has_permalink :title, :update => true, :param => true

but it doesn't work as expected, links generated still have id as key. added to_param method and it works.

have I mispelled something?

thank you in advance, a.

andreapavoni avatar Jul 07 '10 16:07 andreapavoni

You haven't misspelled at all, it's "my fault". When I updated the gem I left out the "param" option. I'll add it back in soon. Until then, please keep the "to_param" method in your model.

I'll notify when I update it (the documentation needs an overhaul as well).

goncalossilva avatar Jul 08 '10 22:07 goncalossilva

ok thank you ;)

andreapavoni avatar Jul 09 '10 08:07 andreapavoni