This release fixes the plugin for Rails 1.1.6. The fix is has been applied by overriding the new version of “safe_load_paths” in “routing.rb”.

However, I am not really happy with the current fix as it won’t play well with other plugins doing the same or with Engines. I think the answer is to convert this to a Rails Engine and let that system handle the routing.

It seems to me that the new fixes leave only two options to plugins developers:

  1. copy any files to the apps directory when installing
  2. use Engines

Not too sure I like copying loads of files around, if only because I don’t like the idea of the same thing existing in mulitple places within a single app. So that means Engines – therefore seems like a version of this functionality should be in the Core (especially if you are gonna stop the existing ways of dynamically creating a controller).

Good step by step guide by Ben to adding user ids to the acts as taggable plugin.

The article fails a little short of covering all bases:

  1. the tag_list method doesn’t take the user into account
  2. the delete tags isn’t linked to a user

but, it is a good start.

This fixes a couple of bugs and upgrades to version 2.3.1 of FCKeditor. The are a couple of changes to the way things work:

1) No controller, helper or view copied to the Rails app directory (you need to delete these if upgrading)

2) The editor files can now be included using

<%= javascript_include_tag :fckeditor %>

No spell check yet, and there are some issues with the file upload refreshing the resource browser after completion. Also there are no progress indicators for the ajax requests which can leave you wondering what (if anything) is going on.

Continue reading »

Aug 112006

Found a nice overview of the prototype library .

And then found Encytemedia and these articles about graceful degredation:

  1. graceful-degredation-with-prototype-rails-part-1
  2. graceful-degredation-with-prototype-rails-part-2

Encytemedia is the blog of Justin Palmer, and he has made a great job of customizing Typo.

I have set up a project for the FCKeditor plugin on RubyForge. Now, you can just install it using:

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

This will take care of the install process meaning you can just include the editor in your views using the helpers described in my previous post.

These helpers also now include :height and :width options to set the size of the editor. Both of these options are used like so – :height => ‘400’.

Continue reading »

Following on from my experiences with FCKEditor and Rails, I decided to wrap the whole thing up as a plugin. This can be downloaded here or installed using the plugin install command, see this post

It basically combines and extends the following pieces of work:

  1. Integrate FCKEditor with your Ruby on Rails application
    By Joshua M Charles
  2. Implementation details for FCKEditor integration with Ruby on Rails
  3. FCKEditor On Rails

The end result is the editor with a working resource manager and a set of helpers that allow use with both AJAX and basic HTML forms.

Continue reading »

Bulding Rails apps, buy this and read it cover to cover first, you will be amazed at how many issues have been solved for you. The book is comprised of a selection of ‘full’ recipes (sort of full plans to achieve something – like versioning) and snack recipes (hints on improving your code – postback actions). I would say I will probably use around 50% of them within the next couple of months.

Continue reading »

We (Cominded) have been looking at various rich text editors to play with and I went through a few before eventually deciding that FCKEditor was worth a more detailed look (Others included TinyMCE which is available as a Rails plugin, but isn’t really upto FCK’s standards. It did have the advantage of being under the Creative Commons license, but as we are creating services this ended up not being the deciding factor).

Continue reading »

So Richard White caught up with me a couple of days ago through Technorati and we had a chat about the development of his Ajax Scaffolding as a Rails Plugin. We have agreed to work together on this (which is great) and develop the generator and the plugin in sync (As he also notes in his (kind) comments on the 3.1.3 release of the generator).

Hopefully the first release of the plugin should not to be too far away and will add a little functionality to the existing code.

Continue reading »

Jul 022006

This is a nifty scaffold generator created by Richard White (email, Height1Percent , MiniElements). It produces a CRUD AJAX table element in place of the standard Rails scaffolding.

AjaxScaffold Website

AjaxScaffold Presentation

Continue reading »