# Can I override app/views/layouts/application.html.erb from a plugin?

**URL:** <https://meta.discourse.org/t/can-i-override-app-views-layouts-application-html-erb-from-a-plugin/47267>\
**Category:** Development\
**Created:** [14 Luglio 2016, 1:57am UTC](https://meta.discourse.org/t/can-i-override-app-views-layouts-application-html-erb-from-a-plugin/47267 "2016-07-14T01:57:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [14 Luglio 2016, 2:06am UTC](https://meta.discourse.org/t/can-i-override-app-views-layouts-application-html-erb-from-a-plugin/47267/2 "2016-07-14T02:06:58Z")

</div>

Yes, you can override the `set_layout` method in `application_controller.rb`. Take a look at this (unfinished) plugin for an example:

[https://github.com/scossar/feature-phone-first](https://github.com/scossar/feature-phone-first)

---

_[View the full topic](https://meta.discourse.org/t/can-i-override-app-views-layouts-application-html-erb-from-a-plugin/47267)._
