v3.2.13 - Show latest stable - 0 notes - Class: ActionView::Template
refresh(view) public

Receives a view object and return a template similar to self by using @virtual_path.

This method is useful if you have a template object but it does not contain its source anymore since it was already compiled. In such cases, all you need to do is to call refresh passing in the view object.

Notice this method raises an error if the template to be refreshed does not have a virtual path set (true just for inline templates).

Show source
Register or log in to add new notes.