Support for view_by_name

Why are the above couple of lines not there in the `view` method above?