30 July 2010

The Ruby Reflector

Topic

UJS

  Source Favicon
Email

Prototype JavaScript helpers in favor of Unobtrusive JavaScript ( UJS). The implementation of Unobtrusive JavaScript and the consequent removal of the old inline AJAX commands offers at least three advantages:

Less verbose, inline, behavior code in the HTML document, with the result of much more lightweight, cleaner and readable source code

Rails 3 is no longer Prototype-oriented. With Rails 3 you can easily switch from a JavaScript framework to an other.

Rails…

simonecarletti.com Read
  Source Favicon
By jeff of The Queue Blog 1 month ago.
Email

Unobtrusive JavaScript technique - Simone Carletti's Blog - UJS for dummies. Author's words, not mine.

The Elegant Ruby Web Framework - Padrino Ruby Web Framework - Padrino is a ruby framework built upon the excellent Sinatra Microframework.

Labnotes » My development stack - Assaf's current development stack. Never heard of pipemaster...

Ruby Unroller - code tracing tool for ruby

8 tips for making ambush ‘guerilla …

blog.thequeue.net Read
  Source Favicon
Email

…the Unobtrusive JavaScript in Rails 3 when I realized the UJS section was becoming large enough to deserve a separate post. So here's my Unobtrusive JavaScript for dummies explanation. If you don't know what Unobtrusive Javascript term means, this technique reflects what happened a few years ago with HTML pages when Cascading Style Sheets ( CSS) were introduced. Before CSS, the presentation of HTML elements was defined inline. Did you remember the ugly font …

simonecarletti.com Read
  Source Favicon
By Peter Cooper of Rails Inside 2 months ago.
Email

Javascript made it into Rails 3. At first, we thought UJS wasn't going to be included in Rails 3. Well, just before the first beta came out, the community responded well and a bunch of enthusiastic developers finished up one of the most wanted feature in Rails 3.

Rails has always been about staying on the cutting edge and Rails 3 is no surprise, UJS implementation in Rails 3 takes benefit of the new HTML5 data-* @ attributes. So Rails doesn't spit out …

railsinside.com Read
  Source Favicon
On a timocracy of one 3 months ago.
Email

almost two months later, I'm still have trouble swallowing the UJS kool-aid. @ jamis

Funny how the JS people get all shocked and dismayed when jamis complains about UJS . Evidence of kool-aid. @rjs

Unobtrusive JavaScript isn't a fad, it's how you should write JavaScript . If you read this blog, you're probably doing it already. If you have server-side developer friends who don't write much client-side code, please send them this article! …

timocracy.com Read
  Source Favicon
By Mike Gunderloy of A Fresh Cup 5 months ago.
Email

…been using this tool, and it's been working well for us.

Introducing GitHub Compare View - More analytic power from GitHub, who are clearly concentrating on feature differentiation these days.

Unobtrusive, yet explicit - Jamis Buck tries to work out a useful pattern for UJS in Rails 3.

S3Hub - Amazon S3 client for OS X.

afreshcup.com Read
  Source Favicon
Email

This raises the question: what do you do instead? Well, you have to use UJS . Only, UJS in Rails isn't super mature yet; there's a lot of manual labor involved simply trying to work around the absence of "link_to_function".

So, I set to work. Initially, I tried to copy what rails.js was doing (for Ajax operations, etc.): I installed a handler, and examined the triggering element to see what operations match: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 document …

weblog.jamisbuck.org Read
  Source Favicon
By kencollins of MetaSkills.net - Home 6 months ago.
Email

Are you bleeding on the edge of rails 3 and need to handle shim up some unobtrusive JavaScript to work with your link_to code that use a :method option? I did today and here is what I did to solve it. If you are familiar with the problem, and and what has been happening in rails 3 and UJS, check out Piotr Solnica's blog for a good run down. Or you can check out the simple line code block below.

Are you bleeding on the edge of rails 3 and need to handle shim up some unobtrusive …

metaskills.net Read
  Source Favicon
Email

Rails developers that aren't believers in Unobtrusive Javascript ( UJS). I have to purge this book from my bookcase now that I am a big UJS convert:) I hope you understand. I got this when it first came out, before I had seen the light. Seriously though, if you don't care about UJS principles, this book covers good ground on using AJAX Rails helpers. You should realize that the book was written pre-2.0 ( Rails release that is). Also those wanting to branch out on their …

geek.susanpotter.net Read