READ THE LATEST

Tag: ruby

Using Ajax in Rails Forms

Sometimes you want to update a form and not refresh the page. This is where AJAX (Asynchronous Javascript) comes handy. Instead of the controller responding with an html page, we’ll have the controller respond with Javascript and update the page. Let’s create a list of restaurants by creating a Rails

Read More »

Ruby nil, && operand, and no method error

I wanted to show a link in a Rails application based on whether a person was current_user.admin? and signed_in? The code looked something like this: That would work when I was signed in but as soon as I signed out, I’d get a no method error. That happens because when

Read More »

Using HAML in Rails Helpers

Using HAML in Rails views is great because its more succinct than ERB. Using HAML in Rails helpers was a source of confusion on my end. Here’s what I learned about using HAML in helpers. I wish that I could use HAML directly in Rails helpers just like I use

Read More »

Review: Pragmatic Studio Rails I Course

I finished Pragmatic Studio’s Rails I course and it gave me the skills to build a CRUD Rails app from scratch.  That speaks volumes about how great this course truly is The course features 26 video chapters that walk you through creating a Rails app to finishing a full featured

Read More »

Why skip testing if you’re new to software development

Doing Test Driven Development (TDD) and learning Ruby simultaneously is a problem for brand new developers. When you’re new to development, you don’t have the foresight to take on multiple subjects at once. You’ll context switch and end up frustrated with slow progress. Automated testing is vital to development but

Read More »

How to install RubyMine and setup a Ruby environment on Linux

You’re going to need a text editor to write Ruby.  Although there are many options I prefer using a dedicated Ruby IDE such as RubyMine because it comes with debugging and autocomplete. Both are critical when learning a programming language. I’m running Xubuntu. Xubuntu comes with a Firefox web-browser. Download

Read More »

ASDF VM Version Manager for Ruby Tutorial

Using a version manager is critical if you plan on running different projects from GitHub. A project might not be compatible with the version of Ruby you have installed. We need a way to switch between versions of Ruby without installing and uninstalling them every time. I’ll show you how

Read More »

How to Run Ruby on Windows 10 with VirtualBox

It’s hard enough to learn a new programming language by itself and it’s miserable when you run into avoidable system errors. I learned the hard way. Folks on Reddit faced similar issues. After installing ports of Ruby for windows and working through tutorials, I ran into system errors that don’t

Read More »