Forum: Ruby on Rails permalink_fu - update existing records?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Rails L. (Guest)
on 2009-03-01 16:06
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.
Maurício L. (Guest)
on 2009-03-01 18:02
(Received via mailing list)
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.
Rails L. (Guest)
on 2009-03-01 18:31
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?.
This topic is locked and can not be replied to.