mad.ly rails, jquery, flash, etc    about »

We're looking for senior developer. More Info

Posts Tagged ruby

Timelines.com Launches; RailsConf 2009

Geoff, Zach, Trevor, Bob, Brian, and I (Scott) recently launched Timelines.com. Timelines is a place for people to record and share history about any topic. We want it to be the Wikipedia of event-based information, but unlike Wikipedia we want everyone to have a voice and add their own perspectives (and photos, videos, etc) about [...]


Posted
1 May 2009 @ 3pm

Tagged
rails, ruby

Honeypot filter as a Rack middleware

Our site’s suggestion box got hammered by a spambot recently, so I created this simple Rack middleware to protect our app from any requests that include a honeypot field:

Been using this in production for a few days; seems to work well. Interested in hearing comments on this technique.
Thanks to Zach Zolton for the idea, and [...]


Phusion Passenger on Nginx

Phusion Passenger now runs on Nginx. I rarely get this excited about such a technical thing, but color me excited. Congrats to the Phusion team and Ezra/EY for making this happen. I can’t wait to re-deploy using Nginx.
I’m curious to see if Engine Yard will begin to move their current infrastructure over to Passenger now [...]


Two Surveys You Should Take

If you’re a Web developer of any stripe, please take A List Apart’s Survey for People Who Make Web Sites 2008, as it truly is beneficial to everyone in the industry.
Remove the web, and billions in trade disappear. Websites enable people who can’t walk to run to the store. They bring knowledge and freedom of [...]


Javascript + embedded Ruby templates with Rails, out-of-the-box

I recently tried using Dan Webb’s MinusMOR plugin, which allows you to write Javascript templates with embedded Ruby (a la .html.erb/.rhtml templates), but I was disappointed to find out it didn’t work with Edge Rails.
I found a random Pastie via Google that seemed to fix the plugin for Edge, and this worked okay, with the [...]


Integrating jQuery and Rails: use unobtrusive Javascript instead of view helpers

The jQuery Way to apply behavior to a document is to add it unobtrusively via the $(document).ready() function, ideally in an external script file… unlike the Rails Way, which is to add behavior to individual elements via inline Javascript, using the built-in view helpers.
The markup generated by these helpers is obtrusive, and often repetitive. For [...]


JQuery Ajax + Rails

UPDATE
Old stuff here! See Errtheblog’s post on jQuery for more up-to-date information…
***
I’ve been working on integrating jQuery’s Ajax capabilities into a Ruby on Rails application; here’s what I’ve discovered so far:
RJS templates (yes, you can use them!)
UPDATE see Javascript + embedded Ruby templates with Rails, out-of-the-box for a way to skip using RJS templates altogether [...]