Affichage des articles dont le libellé est rails. Afficher tous les articles
Affichage des articles dont le libellé est rails. Afficher tous les articles

jeudi 28 novembre 2013

How to use solarized colorscheme for vim on a Nitrous box

I'm a happy user of Nitrous.IO for my Ruby on Rails development. As a vim user and a fan of the solarized colorscheme, I had to find a way to set it up for my Nitrous box.

I was not able to setup the full solarized colorscheme for vim so I had to use the degraded 256 colorscheme. To do so, I added the following lines in my .vimrc:

set background=dark
let g:solarized_termcolors=256
color solarized

I can now enjoy using my favorite colorscheme on my favorite editor!

jeudi 26 avril 2012

Setup for new rails project with RSpec

I like to use RSpec instead of Test::Unit for my rails projects. Here are the steps I use to setup my projects.
Create new rails project without Test::Unit
rails new MYAPP -T
Add rspec-rails to your Gemfile:
gem 'rspec-rails'
Choose a javascript runtime in the Gemfile:
gem 'therubyracer', :platform => :ruby
Run bundle install:
bundle install
Install rspec in rails:
rails g rspec:install
Let's write the first spec!

lundi 10 janvier 2011

Debian autotest setup

I spent some time learning Ruby on Rails these days and I had some trouble setting up autotest on my Debian box.
I finally managed to make it work thanks to these instructions.
$ sudo gem install ZenTest
$ sudo gem install autotest-rails
$ sudo apt-get install libnotify-bin
$ sudo gem install test_notifier
And then add require test_notifier/runner/autotest" to the file ~/.autotest