background preloader

#haml

#haml
Haml (HTML abstraction markup language) is based on one primary principle: markup should be beautiful. It’s not just beauty for beauty’s sake either; Haml accelerates and simplifies template creation down to veritable haiku. Unspace Interactive and several other professional Rails shops use Haml exclusively for their projects, valuing its focus on cleanliness, readability, and production speed. Give yourself 5 minutes to read the tutorial and then convert one of your ERB templates to Haml. Simplify. Enjoy.

http://haml.info/

Ruby on Rails Tutorial: Learn Rails by Example Michael Hartl Contents Foreword My former company (CD Baby) was one of the first to loudly switch to Ruby on Rails, and then even more loudly switch back to PHP (Google me to read about the drama). This book by Michael Hartl came so highly recommended that I had to try it, and the Ruby on Rails Tutorial is what I used to switch back to Rails again. Though I’ve worked my way through many Rails books, this is the one that finally made me “get” it. Installing Ruby 1.9.2 on Ubuntu 11.10 Oneiric Ocelot without using RVM Installing Ruby 1.9.2 on Ubuntu 11.10 Oneiric Ocelot without using RVM It seems installing Ruby 1.9 on Ubuntu without the use of RVM isn’t all that trivial. I had to poke around the system for quite a while before I got it running.

Markdown Download Markdown 1.0.1 (18 KB) — 17 Dec 2004 Introduction Markdown is a text-to-HTML conversion tool for web writers. CoffeeScript Using the Ruby Development Tools plug-in for Eclipse Editor's note: To learn what's new and changed in RDT since this article was written, read the developerWorks article "Easy Ruby development, the Eclipse way." Why Ruby? Why would any self-respecting Java developer care about Ruby? Ruby is a general-purpose scripting language created 10 years ago in Japan. Contrary to popular belief, it is a pure object-oriented language. Unlike Java technology, Ruby has no scalars, so everything, including integers, are first-class objects.

A la découverte de Jade - Rudy Zourane « Un Moteur de Template ». Ça vous dit quelque chose ? Vous en connaissez peut-être déjà : Smarty, twig, EJS, Haml etc. Aujourd’hui, l’utilisation de ces moteurs est devenue une monnaie courante : ils sont simples à mettre en place, leurs langages sont faciles à écrire et permettent de produire du HTML très rapidement. De fait, tout ce qui est fait en plusieurs lignes de codes peut se simplifier en seulement quelques petites lignes. C’est la fameuse méthode DRY : don’t repeat yourself ! Ruby on Rails Guides WebSockets on Rails 4 and Ruby 2 - Pogoapp WebSockets are an exciting new HTML5 technology which has finally begun to pick up enough browser, server and library support to see much wider adoption, potentially driving a move towards a signficantly new kind/kinds of web client/server communication. We've been making use of websockets with socket.io and node.js, but good old Rails doesn't need to be left out. We're going to use Dan Knox's slick high-level websocket-rails gem, and actually copy/port over a good bit of code from the slightly outdated example project.

Ruby Regular Expressions A regular expression is a special sequence of characters that helps you match or find other strings or sets of strings using a specialized syntax held in a pattern. A regular expression literal is a pattern between slashes or between arbitrary delimiters followed by %r as follows: Syntax: /pattern//pattern/im # option can be specified%r!/usr/local!

Rails Asset Pipeline on Heroku Cedar cedar rails ruby Table of Contents Rails applications running on the Heroku Cedar stack can have the asset pipeline compiled locally, at deploy-time, or at run time. For new users, we recommend reading Getting Started with Rails 3.x on Heroku before proceeding further. The Rails 4 Asset Pipeline Generating Paperclip image uploads with fake data - Ruby on Rails Populator / Faker Gems ruby - Who is responsible of generating the .idea files in Rails Ruby Gems Not Installing, Hangs While Getting Gems

Related: