# Sinatra link routing

**URL:** <https://www.ruby-forum.com/t/sinatra-link-routing/243894>\
**Category:** Ruby-Forum\
**Created:** [January 23, 2016, 4:58am UTC](https://www.ruby-forum.com/t/sinatra-link-routing/243894 "2016-01-23T04:58:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [January 23, 2016, 4:58am UTC](https://www.ruby-forum.com/t/sinatra-link-routing/243894/1 "2016-01-23T04:58:51Z")

</div>

I lost what I had before and am trying to reconstruct it. If you can see  
my attached file then what I’m trying to do is get any listed markdown  
files that show on the rdoc and md pages to render by clicking the link  
in its associated view file.erb

Here is the site I’m working at and soon I’ll have the pages up and  
showing the markdown and rdoc files there but my question is "how do I  
get this routes.rb file to post them? Thanks in advance!

Oh! here’s the link:

[http://equationoftime.herokuapp.com/rdoc](http://equationoftime.herokuapp.com/rdoc) or

[http://equationoftime.herokuapp.com/md](http://equationoftime.herokuapp.com/md)

---

<div class="post-metadata">

**Author:** ![kb9agt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/3be4f8/32.png) [@kb9agt](https://www.ruby-forum.com/u/kb9agt)\
**Post date:** [January 23, 2016, 5:22am UTC](https://www.ruby-forum.com/t/sinatra-link-routing/243894/2 "2016-01-23T05:22:38Z")

</div>

Well sorry for this but I just got it working. Attached is the updated  
routes.rb file

Thanks again!
