Archive for the 'coding' Category

error_messages_for Extended

I recently posted about my error_messages_for plugin. Since then I have turned it into a trouble ticket and also the extra’s added by Ryan McGeary.

Check out the new updates, on the svn.

0 Comments

Rails Plugins

Not only have I just set up a public HTTP SVN for my plugins (on Google Code as MediaTemple don’t do HTTP:// SVNs) …

I have created a new plugin that extends error_messages_for to give you clickable links to the form elements

The readme:

Clickable Error Messages
======================

Have a long form, or at least one that scrolls past the main page. Want to give your users more interactivity on the forms?

This is unobtrusive, no extra markup is required. If you remove it, your application will work as normal.

Example
=======

In your view:
<%= error_messages_for :user %>

Example goes here.

2 errors prohibited this user from being saved

There were problems with the following fields:

Copyright (c) 2007 Zach Inglis [www.zachinglis.com], released under the MIT license

Get it here: http://zachinglis-rails-plugins.googlecode.com/svn/trunk/svn/
I shall rename it to svn.zachinglis.com when (mt) get back to me.

2 Comments

Rails Hosting

Im currently about to release a butt-load of Rails applications onto my server but before I do, I have decided to evaluate the hosting solution I use.

I am currently on MediaTemple. Has anyone had experience using (mt)’s containers for production?

If I can’t use it decently, i’ll try one of these: (Reccomend them if you like ‘em)

6 Comments

Ruby on Rails » Helpers

I’ve started to archive the helpers that I use in Rails and thought i’d share them with the world.

You can find them here.

Although a small list, it’ll gradually get bigger.

Download them, use them in your work, modify them, share them, do whatever you want with them.

0 Comments

My Learning Experience with Ruby/Rails

I’ve just started to learn Ruby properly now, I’ve always known how to make little adjustments but if I wanted to start a new project, i’d have no idea where to start. I grab “Agile Web Development with Rails” (and a tall drink, after all it’s not going to take me a short time to learn a new language, not even one as ‘easy’ as Ruby). A couple of nights later, a couple of hundred pages later, a mildly sleep deprived reader and I start to journey onto creating my first project of my own. Seems easy at first but then I go to start on my first milestone and I realise while I’d understood all the code that I was taught, it didn’t teach me how to make my own.

The book in general is an OK reference guide and it does help with learning Ruby. I find it fast tracks you through the applications so that in no time you’ve created an application, using this WOW! factor to pull you in further. It doesn’t go through the functions that it tells you to use enough, if sometimes at all. I did catch myself thinking “I guess the documentation on why I am using this function is explained later?’.

If I were to suggest to someone on how to learn the language, I would suggest ‘net tutorials and the Rails wiki.

0 Comments