ruby - Link tag in Sinatra -


ok, brand new ruby , sinatra , embarrassed cannot life of me find out how use link tag in sinatra. need link, index.erb, static page, about.html. <a href="about.html">about</a> not working. how can this? lot!

i think you're looking like:

<a href="/about.html">about</a> 

you're going want locate about.html file in /public folder of application. if want overwrite using location one, can :public_folder , described at: http://www.sinatrarb.com/configuration.html

i hope helps.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -