New blog application post slugs

Hello. I’m creating my own RESTful blog app. I am wondering about
creating post slugs. I think Wordpress creates a slug at post
creation time and stores the string in the database, then uses that
for URLs.

I read about the acts_as_sluggable strategy (http://
agilewebdevelopment.com/plugins/acts_as_sluggable) but I don’t like
having a number (the ID) in the URL.

Any implementation tips from how Mephisto or typo does it? Is there
anything wrong with creating a slug at creation time, is there a
better way to do this? I’ll also be importing a Wordpress database
with existing slugs.

You can use permalink_fu or stringex, the latter being my favourite. You
can
get it from http://www.github.com/rsl/stringex

Hi Ryan. It looks like stringexs creates excellent slugs, in fact I’m
really impressed by the work being done converting dollars signs to
words, converting chinese characters to english etc. So then to solve
my problem you support creating a permalink/slug and storing that in
my “posts” table?

On May 14, 6:26 pm, “Ryan B. (Radar)” [email protected]

Yes.

On Thu, May 15, 2008 at 12:10 PM, Andy [email protected] wrote:

can

get it fromhttp://www.github.com/rsl/stringex


Ryan B.
http://www.frozenplague.net
Feel free to add me to MSN and/or GTalk as this email.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs