May 29, 2012 Tagged: trail map learning apprentice.io git ruby rails postgres refactoring test-driven development unix vim Comments (View) Trail Map How do I learn Ruby on Rails? Vim? Test-Driven Development? Someone asks us these questions weekly. We think we finally have good answer...
README Documentation Contribute Code Crew About Sinatra require 'sinatra' get '/hi' do "Hello World!" end Put this in your pipe $ gem install sinatra $ ruby -rubygems hi.rb == Sinatra has taken the stage ... >> Listening on 0.0.0.0:4567 and smoke it
May 25th, 2012 The Objectify framework, use rake everywhere, big news from JRuby, some Rails console tips, Jasmine testing knowledge and finally, never get lost again thanks to Sextant. May 22th, 2012 Dimension your Rails under a microscope, Open the struct2 for ActiveRecord reputatio...
Socket programming is at the heart of what we do everyday. Whether you're working on web apps, desktop apps, or anything in between you're going to be communicating with web servers, database servers, and probably a dozen other endpoints. But few of us are well versed with our infrast...
The current version of expectations (1.4.3) contains support for freezing time within an expectations scenario . I already put this information out in a previous blog entry , and I'm going to use the same examples here. The following code is a test I was working on at work: (scenario ...
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 of a distri...
This command will create following directories and install files onto them. * ${DESTDIR}${prefix}/bin * ${DESTDIR}${prefix}/include/ruby-${MAJOR}.${MINOR}.${TEENY} * ${DESTDIR}${prefix}/include/ruby-${MAJOR}.${MINOR}.${TEENY}/${PLATFORM} * ${DESTDIR}${prefix}/lib * ${DESTDIR}${prefix}...
(angelsq.co) is a virtual investment platform for making placements in startups listed on AngelList. Following a company can only take you so far. When you are serious about tracking the success of a specific company, AngelSquare provides you with the tools to manage a portfolio of in...
$ rvm install ruby-1.9.3-p0 Installing Ruby from source to: /Users/foobar/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)... ruby-1.9.3-p0 - #fetching ruby-1.9.3-p0 - #extracted to /Users/foobar/.rvm/src/ruby-1.9.3-p0 (already extracted) Fetching yaml-0.1.4.t...
Недавно захотелось разобраться, какие методы вызываются при вызове конкретного метода отнаследованного от ActiveRecord::Base класса. Поэтому я придумал небольшой хак для вывода названия метода при его вызове: module ActiveRecord Base.singleton_methods.each do |m| Base.class_eval <<-EO...
Sweepers are the terminators of the caching world and responsible for expiring caches when model objects change. They do this by being half-observers, half-filters and implementing callbacks for both roles. A Sweeper example:
Twitter -= #! Tue 29 May 2012 at 21:50 Dan Webb : The first thing that you might notice is that permalink URLs are now simpler: they no longer use the hashbang (#!). While hashbang-style URLs have a handful of limitations , our primary reason for this change is to improve initial page...
If you're new to Rails, or if you've been using Rails 2 for a long time, you might not be aware that Shoulda offers an allow_mass_assignment_of matcher that works just like it sounds. Here's the example from the source code : it { should_not allow_mass_assignment_of(:password) } it { ...
Railsアプリケーションで、モデルデータに基づいてカスタムのJSONデータを返したい場合、これを行う方法はいくつかあります。モデルのas_json メソッドをオーバーライドするか、エピソード320 でおこなったようにJbuilder gemを使用することができます。もう一つよく使われるのが、RABL gem を用いる方法です。RABLはRuby API Builder Languageの略で、その他のツールと比べると若干機能が豊富です。
cap-git-deploy 0.0.2 Mikamai-style deploy strategy install gem install cap-git-deploy Download Documentation Subscribe Stats Authors MIKAMAI 20 total downloads 8 for this version Owners Links Homepage Gemfile gem "cap-git-deploy", "~> 0.0.2" Versions 0.0.2 May 29, 2012 0.0.1 May 29, 2...
Alchemy is a Rails 3 CMS with a flexible content storing architecture.
A whole squad of Ruby5 hosts reports from RailsConf 2012 in Austin. We discuss the DHH keynote, Rails on Roombas, the fact that Confreaks is now filming all talks, progressive enhancement on mobile, sharing your appreciation to community contributors and the Ruby Hero Awards ceremony.
The problem results from the timestamps' format change from "seconds since epoch" to "microseconds since epoch" in Trac 0.12 While trying to migrate my Trac environments I got straight down to the code and reinvented the wheel by making a similar patch I am pretty sure that neither mi...
Meteor is a JavaScript framework for building rich client-side applications. Here I re-create the Raffler app to compare with Backbone.js and Rails. Meteor may not be related to Rails, but I think many will find it interesting.
Sometimes you get good ideas from other languages. I’ve had fun with this little package over the past few days. The Groovy language was the big buzz at the No Fluff, Just Stuff conference (see NoFluff2004 ) a few weeks ago. So I’ve been looking at some groovy stuff recently (and I di...
DataMapper allows the use of natural primary keys, composite primary keys and other complexities. Because of this, when a model is declared with a belongs_to relationship the property to hold the foreign key cannot be initialized immediately. It can only be initialized when the parent...
This method is designed to perform select by a single column as direct SQL query Returns Array with values of the specified column name The values has same data type as column.