I just found about Media Convert, a free online tool that converts files from one format to another. I converted an FLV to SWF, and it worked flawlessly. Their converters also convert from many other formats. Hope this helps someone.

This article and the plugin it describes are obsolete. There are replacements for neighter. The code is still available if you want to play around with it.

Release 0.2 is now upon us. Release 0.1, described in Flash Helper Plugin – Flash Standardization was so broken as to be unusable. From bad requires, to invalid syntax and missing classes/modules, things looked pretty bleak.

Fortunately, things are better. Release 0.2 has no new features, but at least, it has the benefit of working.

Installation stays the same:

  • svn export http://opensvn.csie.org/flash_helper_plugin/tags/0.2 vendor/plugins/flash_helper
  • svn propset svn:externals vendor/plugins flash_helper http://opensvn.csie.org/flash_helper_plugin/tags/0.2 be very careful with this one
  • Download from RubyForge.org and unpack into vendor/plugins

Everyone, report any bugs and enjoy !

This article is obsolete, as is the plugin. The article does not have a replacement, and the plugin died a kind death. It’s code is still available if anybody wishes to take the reins and go with it.

Over on the Rails mailing list, Luke Randall is proposing that Rails applications and generators standardize on some keys for the flash:

This being a very good idea, here is an excerpt of his proposition:

Based on my own experiences, I’d suggest something along
the lines of the following (the names are the best I can think of,
anyone is welcome to suggest better ones):


  • :notice for positive feedback (action successful, etc)
  • :message for neutral feedback (reminders, etc)
  • :warning for negative feedback (action unsuccessful, error encountered, etc)

(emphasis mine)

In the spirit of open source, I started coding a new Rails plugin: the FlashHelperPlugin. With it, you will be able to do:

app/controllers/users_controller.rb

1 class UsersController < ApplicationController
2 def authenticate
3 if authenticated? then
4 flash_success(Authenticated successfully)
5 redirect_back_or_default :controller => home
6 else
7 flash_failure(Failed authentication)
8 end
9 end

app/views/layouts/application.rhtml

1 <html>
2 <head>
3 <%= stylesheet_link_tag ‘scaffold’, ‘application’,
4 :media => ‘all’ >
5 </head>
6 <body>
7 <= show_flash_messages >
8 <= @content_for_layout %>

9 </body>
10 </html>

Actually, what I need now is a nudge to get the tests working. Also, WEBrick fails silently on startup with this plugin in vendor/plugins.

If you want to help, go on over to the flash_helper plugin project page for more information. Get started by checking out the code from Subversion.

Search

Your Host

A picture of me

I am François Beausoleil, a Ruby on Rails and Scala developer. During the day, I work on Seevibes, a platform to measure social interactions related to TV shows. At night, I am interested many things. Read my biography.

Top Tags

Books I read and recommend

Links

Projects I work on

Projects I worked on