There is a new version of the Fckeditor plugin available. It is a very minor bug fix release to deal with the improper constantizing of model names as reported by a couple of people. Oh and I also checked it works with Rails 2. The demo is running on 2.0.2.

The plugin is available from Ruby Forge or by doing this:

ruby script/plugin install svn://rubyforge.org//var/svn/fckeditorp/trunk/fckeditor

If you have seen this sort of thing:

ActionView::TemplateError: Expected image.rb to define Image

or this:

SystemExit (exit):
    /usr/local/lib/ruby/gems/1.8/gems/RubyInline-3.6.5/lib/inline.rb:70:in `exit'
    /usr/local/lib/ruby/gems/1.8/gems/RubyInline-3.6.5/lib/inline.rb:70:in `rootdir'
    /usr/local/lib/ruby/gems/1.8/gems/RubyInline-3.6.5/lib/inline.rb:84:in `directory'
    /usr/local/lib/ruby/gems/1.8/gems/RubyInline-3.6.5/lib/inline.rb:258:in `so_name'
    /usr/local/lib/ruby/gems/1.8/gems/RubyInline-3.6.5/lib/inline.rb:294:in `load_cache'
    /usr/local/lib/ruby/gems/1.8/gems/RubyInline-3.6.5/lib/inline.rb:678:in `inline'
    /usr/local/lib/ruby/gems/1.8/gems/image_science-1.1.3/lib/image_science.rb:84

in your log files when using ImageScience you may well of been a bit confused and frustrated – I was.

Continue reading »

Dec 202007

I was looking for a neat way to crop images last night and had originally planned to use the excellent jsCropper library from Dave Spurr, which I have used on projects before. When, during a bit of googling about I came across Kropper from Jonathon Wolke. It takes a slightly different approach to Cropper with the crop area staying put and the image moving under the crop area, but also includes a neat zooming feature and some pretty slick design. Another plus, from a Rails perspective, is that the code comes in an example Rails app!!! Makes it very easy to integrate.

Its taken a long time (well about a year) and a lot of messing about with Skype, but the first site from the Cominded stable is open for invitations to join the beta. Yabb is a social utility based on conversation, “talk more, type less” being the motto. So go along and sign up, I look forward to chatting with you online.

It has to be said integrating with the Skype API is an experience, and not usually a particularly consistent one!! Anyway now we are out of stealth mode I guess it ok to start sharing some of the issues we came up against and how we solved them.

Oh and Nothing is doing quite well, 627 installs in 27 countries in 8 days. I know its not exactly explosive growth. But, its not in the directory and lets face it it does actually do nothing.

Ben Smith who I work with over at Cominded has put up a good article on getting your site to work with the iPhone. Definitely worth a read (as is much of his blog), now all I need to do is find a way to get one – I knew I shouldn’t of been tempted by the N95 (its spent more time being fixed than anything else)!!!!

I have just completed (well apart from moving any assets over) the switch from Typo to Mephisto. It was fairly painless. There was one :dependent declaration that needed fixing in the converter code and other than that pretty much everything I needed to know was in these two posts.

How I converted Type to Mephisto

Finally switched to Mephisto

The solution given for fixing your routes found in the later of these I found also needed this line:

Mephisto::Routing.redirect '/articles' => '/'

to get all my permalinks to work. The result on my memory usage is pretty dramatic and hopefully I won’t get as much spam…..

I have been messing around with Facebook apps recently and I found a couple of articles to be very helpful:

Tutorial On Developing A Facebook Platform Application With Ruby on Rails

Continuing Facebook Applications With Ruby on Rails

Fist in your Facebook

Continue reading »

Nov 162007

Apologies to anyone who found this blog down over the last couple of days. For some reason I was subject to a DDOS attack!!! Wouldn’t really of thought of myself as a entertaining target really, but there you go…..

Or is that what all those tests are really for!!!!

Check out some other great cartoons at xkcd.com

Out of the box acts_as_paranoid comes with the ability to define a belongs_to relationship as including deleted records (although to get it to work you need to add require File.dirname(FILE) + ’/lib/caboose/acts/belongs_to_with_deleted_association’ to the init.rb file):

class ModelA < ActiveRecord::Base
  belongs_to :model_b, :with_deleted => true
end

This works quite nicely for that ModelA, but what happens if you want to include the deleted ModelA’s from ModelB through a has_one relationship…… its falls over. However that is easily fixed.

Continue reading »