Module Waves::Helpers::View
In: lib/helpers/view.rb

View helpers are intended to help reuse views from within other views. Both the layout method in the common helpers and the property method of the form helpers are specialized instance of this.

The star of our show here is the view method. This takes a model, view, and assigns hash (which are converted into instance variables in the target view) and returns the result of evaluating the view as content in the current template.

Methods

view  

Public Instance methods

Invokes the view for the given model, passing the assigns as instance variables.

[Source]

    # File lib/helpers/view.rb, line 15
15:       def view( model, view, assigns = {} )
16:         self << Waves.main::Views[ model ].new( request ).send( view, assigns )
17:       end

[Validate]