# What's the easiest way to replace the \* .erb file?

**URL:** <https://meta.discourse.org/t/whats-the-easiest-way-to-replace-the-erb-file/68068>\
**Category:** Development\
**Created:** [2017年八月15日 11:13 UTC](https://meta.discourse.org/t/whats-the-easiest-way-to-replace-the-erb-file/68068 "2017-08-15T11:13:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)\
**Post date:** [2017年八月15日 11:13 UTC](https://meta.discourse.org/t/whats-the-easiest-way-to-replace-the-erb-file/68068/1 "2017-08-15T11:13:16Z")

</div>

Hello!

for example

`discourse/app/views/list/list.erb`

I created this file in the plugin: `text/app/views/list/list.erb` (And I copied the contents of the original file there)  
In the file: `plugin.rb`

Need to specify a connection?

```
enabled_site_setting :text_enabled
load File.expand_path('../app/views/list/list.erb', __FILE__ )

```

Unfortunately, I did not find how to do it.

---

<div class="post-metadata">

**Author:** ![mbcahyono](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mbcahyono/32/97721_2.png) [@mbcahyono](https://meta.discourse.org/u/mbcahyono)\
**Post date:** [2017年八月15日 11:54 UTC](https://meta.discourse.org/t/whats-the-easiest-way-to-replace-the-erb-file/68068/2 "2017-08-15T11:54:58Z")

</div>

There is prepend\_view\_path method:

> **[prepend\_view\_path(path) Link - ActionView::ViewPaths::ClassMethods](https://api.rubyonrails.org/classes/ActionView/ViewPaths/ClassMethods.html#method-i-prepend_view_path)**
>
> Prepend a path to the list of view paths for this controller.
