Entries RSS Comments RSS

Easy Sinatra Project

I lovelovelove Sinatra. (SinatraRB.com) I created a very simple app (the fortune cookie generator I mentioned in an earlier post) to play with styling/views, get and post requests, and the very bare bones workings of Sinatra. I absolutely love how pure and simple it is. The structuring is a bit confusing at first, but the Sinatra Peepcode video helped me a lot on this: http://peepcode.com/products/sinatra

In the Peepcode video, they make a Sinatra app in one file, and then break it down from there into separate files. It’s good to see how everything CAN fit in one file. This is how I learned CSS, actually– by putting my styles in with the rest of my website. Once I realized you put the CSS in a separate file, I had a mini epiphany: sometimes it’s best to put things together before you take them apart. Then you can truly appreciate the fragmentation of a given application and truly understand the purpose of breaking things up for simplicity’s sake. Seeing this helped me understand a lot about Sinatra, and even shed some light for me on why Rails is the way it is, as well.

So, dundundun: I made this: http://fortunefinder.heroku.com

Don’t judge my poor styling and wacky coloration. ;) This really was just a silly little experiment to play with the basic features of Sinatra. Now that I understand the basics, I’m moving on to another project confidently. I’ll still probably tweak this one a little, too. Just for fun.

You can check out the code on github at http://github.com/ashumz/fortunefinder Nothing special, but might help a Sinatra newbie get a feel for the basic set up of a simple app.


Tags: ,

2 Responses to “Easy Sinatra Project”

  1. Alan says:

    Totally awesome!

  2. DUANE says:


    CheapTabletsOnline.com. Canadian Health&Care.Special Internet Prices.No prescription online pharmacy.Best quality drugs. High quality pills. Buy pills online

    Buy:Wellbutrin SR.Lipothin.Lipitor.Lasix.Nymphomax.Prozac.SleepWell.Zocor.Female Pink Viagra.Cozaar.Ventolin.Buspar.Amoxicillin.Seroquel.Benicar.Zetia.Advair.Aricept.Acomplia.Female Cialis….

Leave a Reply