Ruby on Rails - Debug Purposes - Add file name (partial/view) to HTML output -


i learning spree ecommerce. although ask spree example, think useful elsewhere well.

in spree have many views defined admin section. can override them via deface gem if know view need override. other deface can put physical file same route , rails use instead of 1 provided gem.

either way, need know view need override.

when in page/view, have many smaller partials making 1 whole page.

my interest is, there way find section created partial.

for example, thing like:

<!-- /route/to/view.html.erb --> <div id="something">    <!-- other html --> </div> <!-- end of /route/to/view.html.erb --> 

i hope got point, maker know specific html segment generated specific view/partial.

so way, can know/debug easily.

thank,

appreciate can give.

you should try xray, i'm using spree , works fine.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -