# Permalink\_fu - update existing records?

**URL:** <https://www.ruby-forum.com/t/permalink-fu-update-existing-records/161707>\
**Category:** Rails\
**Created:** [March 1, 2009, 3:06pm UTC](https://www.ruby-forum.com/t/permalink-fu-update-existing-records/161707 "2009-03-01T15:06:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![railslist](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/65b543/32.png) [@railslist](https://www.ruby-forum.com/u/railslist)\
**Post date:** [March 1, 2009, 3:06pm UTC](https://www.ruby-forum.com/t/permalink-fu-update-existing-records/161707/1 "2009-03-01T15:06:15Z")

</div>

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](http://domain.com/category/8012221562396cf8562fa4bf6b12d0a0ba23d528)

any help is highly appreciated.

---

<div class="post-metadata">

**Author:** ![railslist](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/65b543/32.png) [@railslist](https://www.ruby-forum.com/u/railslist)\
**Post date:** [March 1, 2009, 5:02pm UTC](https://www.ruby-forum.com/t/permalink-fu-update-existing-records/161707/2 "2009-03-01T17:02:14Z")

</div>

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

- 

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

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

---

<div class="post-metadata">

**Author:** ![railslist](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/65b543/32.png) [@railslist](https://www.ruby-forum.com/u/railslist)\
**Post date:** [March 1, 2009, 5:31pm UTC](https://www.ruby-forum.com/t/permalink-fu-update-existing-records/161707/3 "2009-03-01T17:31:32Z")

</div>

MaurÃ­cio Linhares wrote:

> No one can really help you without looking at your code.
> 
> - 
> 
> Maurï¿½cio Linhares  
> [http://alinhavado.wordpress.com/](http://alinhavado.wordpress.com/) (pt-br) | [http://blog.codevader.com/](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?.
