oobbles / 07-16-active

0 stars 0 forks source link

Erb Not Displaying In Heroku #1

Open oobbles opened 9 years ago

oobbles commented 9 years ago

When I run my app with Sinatra, it displays my text and then my embedded ruby: (source)

Hello and welcome to my app.
<div>

    <a href="album/1">Photos With Cheese</a><br>

    <a href="album/2">Photos With Yellow</a><br>

</div>

When I run it with Heroku it just sees the text and divs: (source)

Hello and welcome to my app.
<div>

</div>

https://enigmatic-everglades-7166.herokuapp.com/home I'm expecting it to work on heroku, since it works on local host.

Honestly not sure if I've missed a step somewhere or not.

sumeetjain commented 9 years ago

You might not know, but your database contents do not transfer to Heroku. So maybe everything is working correctly, but you simply have no albums to loop through?

oobbles commented 9 years ago

I did not know that. Can I include a ruby file with insert statements to get them in or... Can I only do it through the web interface?

sumeetjain commented 9 years ago

tias :)

On Sat, Jul 18, 2015 at 8:47 PM Lisa notifications@github.com wrote:

I did not know that. Can I include a ruby file with insert statements to get them in or... Can I only do it through the web interface?

— Reply to this email directly or view it on GitHub https://github.com/oobbles/07-16-active/issues/1#issuecomment-122612243.