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

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:

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