Overriding views with deface

Hi folks,

Was wondering if anyone had had success overriding views with a rails engine and deface?

For instance, I’m trying to add some fields to the sign up page, but don’t want to hack the sharetribe core, because I want to be able to pick up new functionality.

I created a mountable rails engine ( as outlined here http://guides.rubyonrails.org/engines.html ) and was able to use deface to modify some aspects of the signup form, but am unable to touch others. This seems relevant: https://www.netguru.co/blog/deface-erb-html-spree

I wasn’t sure if there was an easy way to view the erb that the haml is compiled to, or if there were a preferred way to customize sharetribe that I missed?

1 Like

I also posted on SO about debugging deface, in case this helps anyone else: http://stackoverflow.com/questions/35977393/debugging-deface-templates

Was able to solve this using the rake tasks, as I mentioned in the SO post.

Cool! Thanks for posting. I haven’t heard of deface but it looks interesting.