Blog

Serve any folder through a server using a folder

Sometimes its helpful to serve html over a web server when creating static pages, wether to get round a JS issue such as loading JSON or to be able to use browser stack to test pages.  Setting up a proper virtual host or even using backup can...

Adding a custom route to Refinery

It's possible to add you own custom routes to refinery by prepending them to the Refinery engine.

To prepend a route add the following to config/routes.rb after the refinery engine has been mounted

mount Refinery::Core::Engine, :at => '/'  ...

Adding Custom Fonts to your Titanium iOS app

Adding a custom font to your Titanium Apccelerator app is very simple.

1. Download your font (TTF & OTF are supported)

2. Copy to Resources/fonts

3. Open the apps info.plist.  If it does not exist build your app and then copy the plist...

Creating App Docs When deploying with Capistrano

I’ve been starting to use capistrano and a couple of projects lately. One thing i wanted to do when i deploy my app is generate documentation automatically.

I sat there wondering how to do this with capistrano for a few minutes and performed a few...

Serialise a ruby hash into a database field

Earlier today i started creating a google widgets type system for our corporate intranet. Each widget can have its own set of options for each user, I have a table declaring each users widgets with a field called widget_params i wanted to save the...

Using Tinymce with Interchange

Interchange the ecommerce application based upon perl has a HTMLAREA widget within the backend that can be used to provide a rich text area for editing content. This can be configured to use fckeditor or htmlarea however I find both these editors...