http://www.jroller.com/obie/entry/seo_optimization_of_urls_in

HTH,

 - Tony

On Tue, Oct 27, 2009 at 9:47 AM, Chris <[email protected]> wrote:

> Hey,
>
> For a simple forum I'm writing as a learning exercise, I'd like to use the
> thread's id in it's slug. I had the smart idea of making a before :save
> hook, but at that point you don't have an id, do you? Well, setting anything
> in an after :save hook doesn't work, and calling save/update from within it
> would create an infinite loop.
>
> I could create a method instead of a property, to pull out the id and
> create the slug, but this doesn't fit me, because I actually want to look up
> threads by slug.
>
> Any other ideas?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to