addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramlinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

B'more on Rails Message Board › My favorite CodeRack submissions

My favorite CodeRack submissions

John T.
San Diego, CA
Post #: 7
I thought I'd share my thoughts on a few of the #coderack submissions:

  • WatermarkMe (­ ) : I really like this idea. It will inspect the HTTP_REFERER header and apply a watermark to images being hotlinked from other sites. It does have one primary shortcoming though: in most production environments, a web server (apache, nginx) will handle the image request without invoking rails.
  • RefererControl (­ ) : This rack middleware will enforce a particular path through your app. By setting up referer chains, you can enforce that POSTs to /item/1/purchase must come from the /item/1 URL. This isn't foolproof by any means since anyone can set the HTTP_REFERER header, but I thought it was a cool idea nonetheless.
  • InlineUploader (­ ) : This one's probably my favorite. It unobtrusively "decorates" your file upload fields in forms with an "in place file upload". The rack middleware will replace the actual HTML in the rendered form with new HTML/Javascript to perform a gmail-style in-place file upload. The rack middleware will intercept this intermediate file upload and store the file in a tmp location on the server. It will then send back javascript to update the form in place to fill the file upload field with the appropriate location of the previously uploaded file. The user then simply submits their form and the middleware ensures that rails can find the file that was uploaded. All of this is achieved "behind the scenes." You as a developer having written a regular form with a file upload field can avail of this behavior without having to touch your form.
  • [Rack::ChromeFrame (­ ) : Forces ie6 users to install ChromeFrame.

Which ones do you guys like?
Powered by mvnForum

Our Sponsors

  • OrderUp

    Our primary host and supplying hack night food

  • SmartLogic

    Providing sustenance for hungry Rubyists.

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy