JC: added @erb_code and if loop in views.
JC: sort column action & last update order to match the current one.
JC: added @view_in_config to views. specs pass.