---
title: "Scott Gorsky (@sjgorsky) | Hashnode"
description: "Git just got real. Read the latest articles by Scott Gorsky on Hashnode."
url: "https://hashnode.com/@sjgorsky"
---

@sjgorsky

# Scott Gorsky

@sjgorsky · Chicago, IL · Joined August 2021

Git just got real.

[Website](https://scottgorsky.netlify.app/)

### [Partials and DRY](https://sjgorsky.hashnode.dev/partials-and-dry?utm_source=hashnode&utm_medium=feed)

Fast fact for today: In the context of the app I'm building, views with the same code to render html forms can be consolidated into a partial. For example, a file called \_form.html.erb with a name, email, password, etc. that appears on both signup an...

1 min read · [sjgorsky.hashnode.dev](https://sjgorsky.hashnode.dev/partials-and-dry?utm_source=hashnode&utm_medium=feed)

[Dec 24, 2021](https://hashnode.com/posts/partials-and-dry/61c60848e41ad0514585162c)

### [The or-equals operator](https://sjgorsky.hashnode.dev/the-or-equals-operator?utm_source=hashnode&utm_medium=feed)

This one feels like a simple concept to teach, but an easy one to forget. The or-equals operator ||= allows a value to be assigned to a variable if and only if that variable evaluates to nil or false. Consider, for example: This can be expressed as...

1 min read · [sjgorsky.hashnode.dev](https://sjgorsky.hashnode.dev/the-or-equals-operator?utm_source=hashnode&utm_medium=feed)

[Dec 20, 2021](https://hashnode.com/posts/the-or-equals-operator/61c0287f02755832385f3529)

### [Rails "resources" and RESTful routes](https://sjgorsky.hashnode.dev/rails-resources-and-restful-routes?utm_source=hashnode&utm_medium=feed)

Using resources :controller\_name automatically adds a full suite of RESTful routes. For more limited scope controllers (like a login controller), you can use rails generate controller ControllerName new and it adds views as well.

1 min read · [sjgorsky.hashnode.dev](https://sjgorsky.hashnode.dev/rails-resources-and-restful-routes?utm_source=hashnode&utm_medium=feed)

[Dec 11, 2021](https://hashnode.com/posts/rails-resources-and-restful-routes/61b4103a3e16b66b1b1e5b50)
