Tagged: params

What’s that you’re hearing? Oh, just your browser talking to you.

What’s that you’re hearing? Oh, just your browser talking to you.

Once you get an app online with Sinatra or Rails, it quickly becomes important to be able to talk to your browser, and listen to it. How else will you tell it what to do? You need to understand a little bit of what’s going on to really be able to control the browser and get input from the user. The key...

Debugging the Controller

Debugging the Controller

Debugging is an important part of getting your code to work, and today we got some more practice. We were given a simple Rails app and had to figure out what was wrong with it. The issue with the app is that when a new game is created, the name field remains blank. To solve this, I broke it down into a...