Ruby Developer Notes Useful things

3May/111

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: