Rails Custom URL Tutorial

May 18th, 2006

When my del.icio.us rails app finally goes live, one of the features it will have will be the ability for users to associate a retreived query with a keyword so that they can easily get back to it in the future.

For instance, let's say that I get a list of my del.icio.us links tagged with the word "ruby." I edit them in whatever way I feel like, and then save my creation along with a keyword that I choose - let's say "ruby" for simplicity.

I don't want my users to have full access to the admin sections of my application - they'll only have access to create and update their query results. So, I want to give them the ability to use their keyword as part of the url. So it'll be something like http://delipaste.com/saved/ruby.

Read the rest of this entry

Simple Rails RJS Tutorial

May 13th, 2006

"Write javascript without writing javascript!" It sounds so zen... There is no spoon. Ahem. One thing I've read about since I've started fooling with Rails, and especially since it was officially included in 1.1 is .rjs templates and how they allow rails developers to totally skip writing javascript code. It sounded just like something I ought to learn about and then write a tutorial on...

Read the rest of this entry
Here's some video of the app that I wrote using my delicious script, an ajax progress indicator and scriptaculous effects. It's not very exciting, but it does show the behaviors in a more explicit way than just reading about it. I have another video I hope to post soon where I go over the actual code a bit.

Please leave me a comment and let me know what you think!



Test