A while back a ticket was filed on the Rails tracker to turn on config.threadsafe! mode by default in production . Unfortunately, this change was met with some resistance. Rather than make resistance to change a negative thing, I would like to make it a positive thing by talking about...
Redmine 2.0.3 and 1.4.4 released Added by Jean-Philippe Lang about 3 hours ago New maintenance releases are available for both 2.0.x and 1.4.x series. They include several bug fixes and a security updates for some new vulnerabilities found in all prior Rails versions. Redmine 2.0.3 (C...
Cloud-based API for applying effects on images Posted by Cloudinary on June 18, 2012 — 0 comments This blog post describes how to easily apply effects and filters on images using Cloudinary's cloud-based API: hue, saturation, brightness, oil paint, sepia and more. The post also explai...
This guest post is by Evan Light a test-obsessed developer, the author of several rarely used gems, and the curator of Ruby DCamp. When he’s not a talking head at conferences, he’s usually working at home as a freelance developer remotely mentoring a developer, working for one or more...
Monday, June 18, 2012 at 5:50AM Back with a pile of stuff after spending much time with Cub Scouts and BB guns. module-cluster - I think with support for methods like class_include_or_extend_prepends_includes_and_extends this might be the end game of Ruby metaprogramming. Nitron - "An...
Accepts a container (hash, array, enumerable, your type) and returns a string of option tags. Given a container where the elements respond to first and last (such as a two-element array), the “lasts” serve as option values and the “firsts” as option text. Hashes are turned into this f...
A Fresh Cup is Mike Gunderloy's software development weblog, covering Ruby on Rails and whatever else I find interesting in the universe of software. I'm a full-time Rails developer and contributor, available for long- or short-term consulting, with solid experience in working as part...
RSpec とは、公式サイト の説明によれば、「プログラムの振舞 (behaviour)」を記述するためのドメイン特化言語 (DomainSpecific Language:DSL) を提供するフレームワーク」 です。 プログラムの振舞? ドメイン特化言語?……順番に説明させてください。 プログラムの振舞 (behaviour) 「プログラムの振舞」とはプログラム全体あるいは様々なレベルでの部分 (モ ジュールやクラス、メソッド) に対して期待する振舞 (behaviour:ビヘイビア) の ことです――といっても何も特別なものではありません。 具体例で説明しまし...
Question about web development with Ruby on Rails. Gateway to the Rails mailing list.
Tribune Company open sources eight gems … New “Giant Robots Smashing Into Other Giant Robots” podcast from thoughtbot … Grocer: another APNS gem … BubbleWrap: Cocoa wrappers and helpers for RubyMotion … Early access to “Confident Ruby” e-book … 25 things you need to know about Backbon...
Black Bear Cub Sibling June 18, 2012 Yellowstone National Park Comments: Flickr Read more posts in the blog archive »
Página Inicial 1. O Básico Sobre este capítulo Ruby Interativo: primeiros passos Strings (texto) Nomes novos para coisas antigas Variáveis Seu primeiro programa Escrevendo bons programas 2. Controle de Fluxo Sobre este capítulo Laços (loops) Iniciando inserção de dados Condicionais La...
Agora você será introduzido em um dos mais importantes aspectos das linguagens de programação: laços (loops). Usando seu editor de textos favorito, digite o seguinte: O que você imagina que esta peça de código faça? Salve o arquivo como loops.rb e execute-o. Como você pode ver, o cont...
Você já está familiarizado com um casal de classes Ruby (Integer e String ). A classe Array é usada para representar uma coleção de itens. Isso é melhor visto através de um exemplo: $ irb --simple-prompt >> numbers = [ "zero", "one", "two", "three", "four" ] => ["zero", "one", "two", ...
The situation is similar to the one found for Perl in 2003. In 1.8 series of Ruby, we use a deterministic hash function to hash a string. Here the "deterministic" means no other bits of information than the input string itself is involved to generate a hash value. So you can precalcul...
Find records using a variety of methods and conditions Specify the order, retrieved attributes, grouping, and other properties of the found records Use eager loading to reduce the number of database queries needed for data retrieval Use dynamic finders methods Create named scopes to a...
rocket_tag 0.4.0 A modern fast tagging framework for Rails 3.1+ install gem install rocket_tag Download Documentation Subscribe Stats Authors Brad Phelan 2,355 total downloads 33 for this version Owners Links Homepage Gemfile gem "rocket_tag", "~> 0.4.0" Versions 0.4.0 June 18, 2012 0...
A reader-friendly Ruby abstraction of the Rakuten Market API
Private Pub makes it easier than ever to publish and subscribe to real-time events in a Rails app. You can use publish_to with a block of JavaScript or supply a hash for use with JSON.
I usually allow new methods to live in application_helper until there are 2-3 related methods that could be extracted into a separate helper. Using a ton of helper modules with 1 method each is counterproductive since i always have to remember if the xx method was in abc_helper or bcd...
5.3 Pessimistic Version Constraint If your project is using the Rational Versioning Policy to assign version numbers, then your users can take advantage of that fact to carefully specify exactly what versions of your software should work with their system. For example, suppose you hav...
Being a consultant, I'm generally at the mercy of whatever source control system my current client is using. Luckily, Subversion has been the version control choice for every client I've worked for in the past 3 years. A friend of mine, Kurt Schrader, recently posted The Power of Git:...
I live in a town dominated by Python, PHP , and Java developers, so hiring someone who can come in and write Ruby code from day one is a challenge. I’ve been thinking about how I learned Ruby myself, how I’ve gone about helping others learn it, and what I would do differently if I had...