Permalink_fu - update existing records?


#1

i am experimenting to use permalink_fu to provide clean urls. To begin
with, I have installed it and made necessary changes to models, routes
etc. As I have existing records in table, I wanted to update its
permalink column. So in console, I gave

Category.find(:all).each(&:save) --as specified by some article

permalink column gets updated with some crypted like string, like the
ones given below.

43c87da01925d7479495cf2617c52c70f18d444f
8012221562396cf8562fa4bf6b12d0a0ba23d528

url links use this as in

domain.com/category/8012221562396cf8562fa4bf6b12d0a0ba23d528

any help is highly appreciated.


#2

No one can really help you without looking at your code.

Maurício Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/
(en)

On Sun, Mar 1, 2009 at 11:06 AM, Rails L.


#3

Maurício Linhares wrote:

No one can really help you without looking at your code.

Maur�cio Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/
(en)

On Sun, Mar 1, 2009 at 11:06 AM, Rails L.

The question is not about my code. Its about how to use permalink_fu to
an existing project.

More specifically, how to update existing models ( updating permalink_fu
column for the existing records )

have you used permalink_fu before?.