Archive for January, 2008

Rails 2.01 vs 1.2, an initial impression

Wednesday, January 23rd, 2008

Heavenly’s new Flatpack CMS going to be a Rails 2 project which means I get to play with some new features! There have been quite a few changes to the standard rails way of making applications.

There’s a new rake task: rake db:create:all which generates your databases from your yml file. Slightly easier than using yog or similar to do the same job.

The scaffolding system has also changed. In Rails 1 I would generally generate a model, edit the migration, run it and then generate the scaffold to make the views and controller. This doesn’t work in Rails 2 as the generator stops if the migration already exists, the views are created but the controller is not. I have a feeling this may get changed in future versions. Instead we use the extended version of the scaffold. Typing: ruby script\generate scaffold Page title:string text:text permalink:string now builds the entire page model, views, controller, and migration script in one fell swoop.

The list view is no longer generated by the scaffold. Instead, the index template now does everything the old list template used to. This make a whole lot of sense to me.

Templates now use the erb suffix which initially confused my editor. As far as I can tell, the two file types are functionally the same, in fact rhtml was always erb by another name.

Rather wonderfully Ajax support now comes as standard in scaffolded templates as the respond_to block is now autogenerated. This block lets you respond to requests depending on the http request eader submitted by the client. Tell it to respond to a js request and it’ll deal with it nicely. This makes me extremely happy as Flatpack is heavily ajaxified.

I’ll post further information as I find it.

Optimising for “Ruby on Rails Web Development”

Wednesday, January 23rd, 2008

After a lot of detective work and a little heated debate we have decided that the key-phrase of the month is “Ruby on Rails Web Development“.

I have been a little heavy handed in my use of the phrase over the site but then I’m looking for some pretty fast results to test the amount of response we get.

I have updated a number of web directories as well as submitting to Web-Development.com, which looks like it may even prove a good source of traffic in itself, so fingers crossed that we might see a decent increase in leads from our Google Campaign pretty soon!

Next its time to plan an adwords campaign…

Continuing the Ruby series with RMagick

Friday, January 18th, 2008

I now have a lovely brand new dev box which of course means a whole new Ruby install and another opportunity to work through the various issues that can crop up from time to time. In this article I look at installing RMagick on Windows Vista. RMagick is a Ruby wrapper on the popular Image Magick image manipulation software. It’s slightly more tricky than a standard Gem install but only by a fraction.

We’ve used RMagick on several projects now and found it extremely useful. For example in Apollos Pad the design called for a custom font on the h2 titles which initially left us with a hell of a job as these titles changed every few days. Now these are generated on the fly by the CMS.

Creating a new Vision

Friday, January 18th, 2008

As Heavenly Media’s first birthday draws near we have enjoyed the chance to look back over our first year, back to when we first started last March as an ‘ethical internet marketing’, a business premise which promoted a somewhat underwhelming response, through to being a busy ruby on rails web application development agency.

A lot has changed and as such we decided it was high time that we reviewed our goals and focus on what we have done best over the past year, working as a web development outsourcing partner to larger web agencies.

Having a good look at our past and where we are now has been a great exercise for us in many ways. We have rediscovered all the reasons that we work hard day and night to make Heavenly successful. Rather than our original vision, which has lost its relevance slowly over the past year as we have learned more about the business we want to build, we are now armed with an inspirational and relevant vision

With the help of Gordon Borer, an exceptional business coach, we explored our vision, that is what we want the business will look like when it’s finished, which allowed us to really focus in on how we want achieve our business goals. We agreed that our vision for Heavenly media is:

To be and to be known as the greatest web development outsourcing agency in the world.

We want the be known as the highest quality, most reliable, flexible and cost effective outsourcing service in the world, a claim we have proudly made possible by using the wonderful Ruby on Rails framework together with Agile and Scrum Methodology. An exciting prospect and a worthy goal… it’s the great reason to get up in the morning!