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


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:

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