Заметки Ruby программиста Всякие полезные наработки

22Фев/120

Install ruby 1.9.3 with RVM and MacPorts

I have the following problem when i do just:

rvm install 1.9.3

It installs fine and works good except one bug during `cap deploy`:

/Users/pasha/.rvm/gems/ruby-1.9.3-p125@smartsourcing/gems/net-ssh-2.3.0/lib/net/ssh/buffer.rb:255: [BUG] Segmentation fault
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.3.0]

Here is similar ruby bug http://bugs.ruby-lang.org/issues/5559

3Май/110

Keep views simple

Some times you need complex logic in views to filter some fields from unregistered users and show default message for blank fields. This case instead of tons if statements you can use nifty helpers with the power of ruby blocks. Like this:

Метки записи: , , Читать полностью