Tagging in ajax_scaffold
I’ve been using the Ajax Scaffold for quite some time now. It’s a great piece of software by Mr. Richard White for Ruby on Rails. It seems that the plugin version of AS is getting quite a bit more attention than the generator. I started out with the generator but quickly reverted to the plugin since it’s way more flexible and easier to use.
Since I wanted to create a quick app to inventory my CD/DVD collection (which is now in a very sexy alu DJ case) I used Ajax Scaffold to get me started. In the spirit of Web 2.0 I wanted to add tags to every CD so it would be easier to find certain kinds of disks later on. So, I added acts_as_taggable.
Acts_as_taggable basically allows you to tag any model in your app. So, I made my Disk model taggable. Great. Now I could do this:
d = Disk.new(:number => 1, :name => "Mac OS X 10.4.6 Install DVD 1") d.tag_with("macoxs apple macbook install") d.save
The real problem was, how to get this functionality easily integerated in Ajax Scaffold?
more »
Google Ads: Can’t click ‘em, but you want to know more!
Do you have Google Ads on your site? You know you are not allowed to click ‘em, because that’s fraude. But what do you do when you see an ad on your site that really grabs your attention? Just google? Enter the URL manually? Or are you the kind of person that clicks that ad anyway.
What would you do? Please let me know.
more »
Torrents for your iPod!
I normally wouldn’t promote torrent sites here, but when I came across Podtropolis I was amazed!
This site features a lot of (video) iPod specific stuff like music videos, TV Shows and even full length movies.
Of course, don’t download any of the stuff! Buy it if you want it.
more »
Hi-Res Wallpapers for your MacBook!
For all of you who have a flashy Apple MacBook (or any other device with a 1280×800 resolution) here’s a nice site with lot’s of hi-res wallpapers. Of course, they’re all for free!
Oh, they have other sizes as well.
Go check out InterfaceLIFT.
more »
Easily create a FavIcon online!
You know those little icons you see in your browsers address bar? Yes, the ones in you bookmarks! Well, you want such an icon for your site?
These icons are called FavIcons, short for Favourites Icon. Most modern browsers make use of them.
To create such an icon you’ll need some image first. Normally the process would be rather difficult involving several graphics manipulation programs and conversions. Don’t fall for that! Use the followin FavIcon from Pics site!
Just upload a gif, jpeg or png image (with transparency if you like) and get a FavIcon for free! There are also some other goodies included!
Of course, there’s information available on how to upload your FavIcon and how to let your browser know about it.
more »
Top 5 DVD’s you must have
Everybody at this point in time at least owns one or more DVD - Digital Versatile Disk - Videos. Some people try to collect as many DVD’s as possible, others just buy the ones they like (or can afford).
I’m not sure how many DVD’s I have at this time, but there are quite a few DVD’s that you just have to have in your collection.
If you feel wronged because your favourite movie is not listed, feel free to add a comment stating your favourites. (Oh, let me know why it’s such a great movie too!)
more »
Generate a SQlite-based Rails app
When you create a Rails application a database.yml files is included with some default configuration for your database. Unfortunately these are defaults for MySQL. If you want to use another database, like SQlite, you’d have to rewrite the entire configuration file. And that’s not what you want!
Luckily, rails is very adapative and we can make it do all the work for us.
more »
Welcome to Ariejan.net
Well, it has happened to me. Although I make regular backups of my site, this time I was screwed!
Since I’m very interested in Ruby on Rails, I gave a RoR weblog, TypoSphere, a try. I exported my entire Wordpress blog to typo and I was a happy man. Until disaster struck…
more »
