#64 Custom Helper Modules

Rails designates one helper module per controller, but that shouldn’t stop you from making custom helper modules to help structure the code. Learn how in this episode.

#64 Custom Helper Modules

Rails designates one helper module per controller, but that shouldn’t stop you from making custom helper modules to help structure the code. Learn how in this episode.

#63 Model Name in URL

By default, Rails uses the model’s id in the URL. What if you want to use the name of the model instead? You can change this behavior by overriding the to_param method in the model. Watch this episode for details.

#63 Model Name in URL

By default, Rails uses the model’s id in the URL. What if you want to use the name of the model instead? You can change this behavior by overriding the to_param method in the model. Watch this episode for details.

#62 Hacking ActiveRecord

Have you ever wanted to temporarily disable all validations? Well, ActiveRecord doesn’t support this, but that doesn’t mean we can’t add it. This episode will show you how to open up an existing class and change its behavior.

#62 Hacking ActiveRecord

Have you ever wanted to temporarily disable all validations? Well, ActiveRecord doesn’t support this, but that doesn’t mean we can’t add it. This episode will show you how to open up an existing class and change its behavior.

Flex Automation Manager

At the beginning of the year I was investigating the new automation functionality Flex 2.0.1 brought to the table. So I looked into what it would take to implement a tool like QuickTest Pro and made some initial progress, but then got called back to reality and other projects. I mentioned this and several readers of this blog contacted me and asked If they could get the source code or if I could open source it. Well, the code is not in any stage where I could open source it or even show it. It doesn’t work under Flex 3 anymore. But as you asked for it, feel free to have a look at this “experiment”. This code is not an example on how to structure you code or the right way of doing things…it’s rather some dark side coding during a late night session. Be warned only check this out if you are really curious or asked for it 🙂 Use at your own risk, and don’t ask too many questions: view source here. They are many parts I haven’t even looked into it such as drag&drop, mouse movement emulation, text selection… so Good luck! Also note that Adobe removed from the source code the mx.automation.delegates folder in the Moxie release…These classes are required to make automation work, and I assumed they where part of the SDK and are an important part to understand how the automation is working. So I am not sure what the status on using these classes is.

#61 Sending Email

This is a brief guide to sending email in Rails. See how to configure the environment, generate a mailer, create a template, and deliver the mail.

#61 Sending Email

This is a brief guide to sending email in Rails. See how to configure the environment, generate a mailer, create a template, and deliver the mail.

On The (onAIR) Bus – Denvers stop live coverage!

20070720_onairtour.png

Not really on the bus but at the onairbustour stop in Denver. Check out Flickr Tags (onairbustour and onair2007denver). Today’s agenda looks quite interested and there will lots of info regarding Adobe’s AIR technology. The Keynote by Ryan Stewart will start in 1 minutes. I’ll take some notes during the day…so check back!

Keynote

Ryan now shows pownce (I am still waiting for my invite…I tried to get one via inviteshare but no success yet!). He shows the nice finetune application that has a nice AIR application to complement their website. He demoes a word processor (buzzword) created in Flex and AIR, ask your preview here.

Now Ryan shows the AIR Roadmap, next big steps is Max 2007. Beta 2 will be release around Max 2007 which will add functionality like Flash AIR Support. An AIR version support Linux appear in the AIR 1.x version.

Now back to Mike Chambers that will provide a technical introduction on AIR and will create a Hello World application. At the end of the presentation Mike points to http://code.google.com/p/onairbustour/ where the post the various applications they are building on the tour about the tour.

Kevin Hoyt – AIR application with javascript

What a slacker Kevin is…only two slides 🙂 No it’s pretty cool, Kevin is a hands on guys and is building some AIR javascript application live and shows some nice tricks.

I won’t transcode all the code he show, but there is a tight integration between javascript and actionscript. He shows how to call directly actionscript methods from javascript.

function doSave() {
var file = air.File.desktopDirectory.resolve(“denver.txt”)
air.FileStream().open (…) // some code left out.
}

So this is javascript and the air object allows access to Actionscript. In this case he is saving some text entered in htm l to the file system. Cool.

He presents Aptana and shows that they have some AIR integration. Check out Kevin’s blog

Kevin Hoyt – Another session on script bridging.

Kevin now builds a web browser in AIR/Flex that uses the mx:HTML component.

web.htmlControl.load(new URLRequest(address.text))


The following provides access to any public actionscript class described in library.swf to javascript.