Tag Archive for 'ruby-on-rails'

Logic vs. ActsAs

There recently came along some new Rails plugins: SearchLogic and AuthLogic. Both are coming from Ben Johnson (BinaryLogic). He seems to have some more logic..
SearchLogic makes it easy to do search and ordering for your models. There is a nice and shiny new version (v2) .. only thing is that it has some bugs.
AuthLogic makes […]

Hyves API wrapper put on GitHub

Since the Ruby Hyves API wrapper is not being maintained (at least not by me :)).. I put it on GitHub to be able to do the maintenance more easily.
See:  http://github.com/joost/hyves_api

addthis_url = ‘http%3A%2F%2Fblog.joopp.com%2F2009%2F07%2F09%2Fhyves-api-wrapper-put-on-github%2F’;
addthis_title = ‘Hyves+API+wrapper+put+on+GitHub’;
addthis_pub = ‘joopp’;

The BOM, UTF-8 and Rails

Some nasty things can happen to your design if your files are saved with a Byte-Order Mark (BOM) character at the beginning. We had a view that was totally f*cked up in Firefox by this. The view was simple:

1
2
3
4
5
Some layout around a
<%= yield %>
or around a
<%= @content_for_layout %>
and a secret character gets put in.. it’s […]

Plugin gem dependencies in your environment.rb

One good thing in recent Ruby on Rails are Gem Dependencies! However.. they are very frustrating when you need gems in your plugins. This gives you a Catch 22..
The rake task to install gems:

1
sudo rake gems:install # Use sudo! See notes below

gives you an error like:

1
2
3
4
5
6
sudo rake gems:install
(in /your/rails/dir)
rake aborted!
no such file to load — […]

Ruby on Rails presentation

We did a Ruby on Rails introduction presentation at Peak-IT just yesterday. The presentation can be found on Slideshare (see below).

addthis_url = ‘http%3A%2F%2Fblog.joopp.com%2F2008%2F09%2F18%2Fruby-on-rails-presentation%2F’;
addthis_title = ‘Ruby+on+Rails+presentation’;
addthis_pub = ‘joopp’;

Does Ruby on Rails scale?

Old question I hear you think But still it will get asked when you start Ruby on Rails projects for clients. One way of comforting a client is just naming a few RoR success stories: “Twitter uses Rails, it has about 8.000.000 unique visitors a month.”.
Evan Weaver has a nice comparison of some […]

Track yourself and your (stolen) Iphone

So.. I saw the homepage of Tijs Teulings and got inspired with his ‘my current location’ thingy. As you can see on the map, it uses an Iphone (I guess).
Now..this is the way to create something like that:

Install the Navizon application on your Iphone. Using installer.
Create the needed account for it.
Start Navizon and set ‘Appear […]

Hyves API v1.0 for Ruby

Hyves (the #1 social network in The Netherlands) released their API v1.0 a few weeks ago. We already created some kind of Ruby wrapper some time ago (for the old API), but now we have a (very quickly created) wrapper for v1.0.
It works as follows:

1
2
3
4
5
6
7
8
9
10
require ‘hyves_api/hyves_api’
# You need to apply for a key via http://www.hyves.nl/api/apply/
key […]