# How do to view rails errors?

**URL:** <https://meta.discourse.org/t/how-do-to-view-rails-errors/71477>\
**Category:** Development\
**Created:** [October 5, 2017, 5:17pm UTC](https://meta.discourse.org/t/how-do-to-view-rails-errors/71477 "2017-10-05T17:17:05Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![iamphi](https://avatars.discourse-cdn.com/v4/letter/i/ba9def/32.png) [@iamphi](https://meta.discourse.org/u/iamphi)\
**Post date:** [October 5, 2017, 5:17pm UTC](https://meta.discourse.org/t/how-do-to-view-rails-errors/71477/1 "2017-10-05T17:17:05Z")

</div>

I am writing a custom plugin to do redirects for my old vbulletin+vbseo forum urls. The import script doesn’t handle the url formats created by vbseo.  
I have a docker+discourse setup.  
I have created blank plugin with just the meta data stuff (name, about, version author), and used `sv restart unicorn` to get the plugin loaded; it shows up in the admin panel. Beyond that I am having trouble doing more. When I try to add a route, nginx/discourse would return 502 Gateway.  
Where can I view errors related to my plugin? or learn more about adding routes in discourse (I assumed it is like adding routes to a rail app)?  
Thanks.

---

_[View the full topic](https://meta.discourse.org/t/how-do-to-view-rails-errors/71477)._
