Approximity blog home
10 of 38 articles

Active RBAC   28 Feb 06
[print link all ]
ActiveRBAC is a library for Ruby On Rails that provides a full stack for managing users and permissions. It runs as a Rails Engine and can be set up within minutes for your existing Rails projects.

Timesummer - a simple RoR timesheet   24 Feb 06
[print link all ]
Timesummer is a simple timekeeping application. It was written to make our life as a single remote cowboy programmer easier. The client did not only want working code, but also reports how time was spent. As keeping an excel list or a simple text-file is too much work, we wrote this tiny application.

Getting started:

  • Get a free account.
  • You book your time on accounts. So setup tasks (accounts)

The general structure is client.project.task. The client might be IBM, the project might be XRT and the task might be design. Then you can add t asks like IBM.XRT.testing, which would mean a testing task.

This client.project.task structure has the advantage that it makes it easier to run more complex reports on the data. How much data we do for client X? How much did we do on project Y?

Here we create the client BMW with project RoR and task design. If the client already exists, only the project and the task are created. If the client and the project exist, only the task gets created.

You can add tasks only to existing client.project.task combinations, but by entering IBM.XRT.testing, you automatically create the client IBM, the project XRT and the task testing if they did not exist before.

Starting/Stopping task

Enough! Some people got work todo! OK, it’s as simple as a cd-player. Press the start and stop button.

Task not running

Task running

This client.project.task structure has the advantage that it makes it easier to run more complex reports on the data. How much data we do for client X? How much did we do on project Y?

Enjoy timesummer, and please use the forms on the site to send us feedback.

Prototype cheatsheet   20 Feb 06
[print link all ]
Jonathan Snook has posted some nice cheat sheets/desktop backgrounds on Prototype 1.5.0_pre0.

ANN Switchtower 1.0   19 Feb 06
[print link all ]
SwitchTower is a utility that can execute commands in parallel on multiple servers. It allows you to define tasks, which can include commands that are executed on the servers. You can also define roles for your servers, and then specify that certain tasks apply only to certain roles.

Manual: manuals.rubyonrails.org/read/book/17

Project: rubyforge.org/projects/switchtower

Download: rubyforge.org/frs/?group_id=1014

Install: gem install switchtower

SwitchTower 1.0 fixes several bugs and adds many new features.

Using Selenium to test asynchronous calls   19 Feb 06
[print link all ]
Great read
 >Luckily, Selenium has a feature that is horribly documented: waitForValue,
 >which you can use in the test case directly, and waitForCondition,
 >callable in a JavaScript-based extension. Using a combination of these,
 >you can make your Ajax call and wait for any condition that should happen,
 >such as the DOM changing or values updating.

RoR workshop, Muenchen, April 12-14   17 Feb 06
[print link all ]
DE: Erfahrene Webentwickler erklaeren Ihnen in drei Tagen alles ueber Ruby on Rails. Bringen Sie einen Laptop mit und sammeln Sie unter Anleitung sofort Erfolgserlebnisse. Registriert schnell, denn wir haben nur 20 Plaetze bei 5 Trainern.

EN: In 3 intensive days, experienced web developers will teach you everything you need to know about Ruby On Rails. Bring your laptop along, and with guidance you will quickly enjoy the experience of super-productive web application development. Only 20 places are available, so book early to avoid disappointment.

Ruby on Rails Cheat Sheet   16 Feb 06
[print link all ]
Useful.

Debugging RJS   16 Feb 06
[print link all ]
I really love RJS, but sometimes it is great to see the generated Javascript. This blog entry by Lukemedia helps.

Multilingual applications with RoR   12 Feb 06
[print link all ]
Globalize is a Ruby on Rails plugin designed to support multilingual applications. It’s under the MIT License, same as Ruby on Rails.

Globalize implements three basic types of translation:

  • Dates, currencies, etc: language dependant, but also (often) country/locale dependant. This feature provides convenient methods for relevant data types.
  • Content in the database, for specific fields in specific tables: once the translates method is added to the relevant model, the fields indicated with that method call gain the ability to have translated content sitting in the database. An operator (possibly the developer) will need to add these translated texts.
  • Arbitrary strings: any string that you would like, with added flexiblity for including parameters (for example: one in the singular form of a phrase and an actual number for the plural form)

Using these three mechanisms, all user-facing content ought to be translatable.

RJS Templates   09 Feb 06
[print link all ]
It turns out that RJS templates are a new form of template, called JavascriptGeneratorTemplates, and end with a .rjs file extension.

Nice intro.

Note: Make sure you work with the latest rails version

 rake freeze_edge

 

powered by RubLog
10 of 38 articles Syndicate: full/short
A unique and safe way to buy gold and silver