---
title: "Mark Godwin (@godwincodes) | Hashnode"
description: "Professional Rubyist.  ❤️ Rails and the Web. Read the latest articles by Mark Godwin on Hashnode."
url: "https://hashnode.com/@godwincodes"
---

@godwincodes

# Mark Godwin

@godwincodes · Colorado · Joined March 2024

Professional Rubyist. ❤️ Rails and the Web

### [💎 in the docs: ActionController#log\_at](https://railscraft.hashnode.dev/in-the-docs-actioncontrollerlogat?utm_source=hashnode&utm_medium=feed)

I love digging through the docs and finding an example that kind of explodes your brain a bit—some piece of functionality you might otherwise gloss over. Take this one from the Rails docs for log\_at. At first glance, I didn’t realize how useful this ...

1 min read · [railscraft.hashnode.dev](https://railscraft.hashnode.dev/in-the-docs-actioncontrollerlogat?utm_source=hashnode&utm_medium=feed)

[Feb 10, 2025](https://hashnode.com/posts/in-the-docs-actioncontrollerlogat/67aa574a8096c60f87757645)

### [Cleaner Rails Controllers with before\_action](https://railscraft.hashnode.dev/cleaner-rails-controllers-with-beforeaction?utm_source=hashnode&utm_medium=feed)

If you have two or more render statements in your controller action, you might consider extracting some of the logic into a before action. Why? Because rendering or redirecting in a before\_action will halt the request cycle and remove the need for an...

3 min read · [railscraft.hashnode.dev](https://railscraft.hashnode.dev/cleaner-rails-controllers-with-beforeaction?utm_source=hashnode&utm_medium=feed)

[Feb 1, 2025](https://hashnode.com/posts/cleaner-rails-controllers-with-beforeaction/679e5407f94abba210196f84)

### [Advice Comes with an Implied Asterisk](https://railscraft.hashnode.dev/advice-comes-with-an-implied-asterisk?utm_source=hashnode&utm_medium=feed)

In software development we’re often given advice in absolute terms: “Service Objects are an anti-pattern.” “Keep your controllers skinny.” “Vanilla Rails is enough.” In the Ruby on Rails community, we all know DHH has a reputation for writing wi...

1 min read · [railscraft.hashnode.dev](https://railscraft.hashnode.dev/advice-comes-with-an-implied-asterisk?utm_source=hashnode&utm_medium=feed)

[Feb 1, 2025](https://hashnode.com/posts/advice-comes-with-an-implied-asterisk/679d66e114d6aea367576d20)

### [Keep Your Controllers CRUD-y](https://railscraft.hashnode.dev/keep-your-controllers-crud-y?utm_source=hashnode&utm_medium=feed)

Anytime your controllers start to accumulate non-standard CRUD (Create, Read, Update, Delete) action names, you may consider extracting the action into a new controller where the action can become one of the standard CRUD action names. Often times, y...

2 min read · [railscraft.hashnode.dev](https://railscraft.hashnode.dev/keep-your-controllers-crud-y?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/keep-your-controllers-crud-y/6797c2e55b69ca4892116526) [Jan 27, 2025](https://hashnode.com/posts/keep-your-controllers-crud-y/6797c2e55b69ca4892116526)

### [Consistently Handle Errors with a ModelErrors Concern](https://railscraft.hashnode.dev/consistently-handle-errors-with-a-modelerrors-concern?utm_source=hashnode&utm_medium=feed)

💡 Trigger Warning! This approach may be considered controversial, especially since it touches on using exceptions for control flow. This is a pattern you can use in your Rails projects to keep your controllers lean. It works especially well in Rai...

2 min read · [railscraft.hashnode.dev](https://railscraft.hashnode.dev/consistently-handle-errors-with-a-modelerrors-concern?utm_source=hashnode&utm_medium=feed)

[Jan 25, 2025](https://hashnode.com/posts/consistently-handle-errors-with-a-modelerrors-concern/679567f67ee89e510ffc49fc)
