Dev Journalby@craigpetterson

3 posts1,418 words

Jan 21, 2020

Rails: Nested Forms

Nested resources are a powerful tool and Rails has made it easy to deal with doing this directly in your usual form, well, format... A typical Rails form is made using the `form_for` tag. When dealing with a normal form, you would just pass in your controller object and add in the relevant input fie...

592 words

Jan 5, 2020

Dev Journal: 4th January 2020

I've had a super productive time recently. Back on the wagon. It feels great. This week, I met up with @_kaparker (welcome to 200 words a day, Kerry!) and we've made some nice progress on the side project we're working on together. This year, I've started using Basecamp and I made a list of tasks I ...

292 words

Dec 23, 2019

Dev Journal: Debugging VAT Reports

The code to make our VAT Return (or in this case, VAT Reports) working is just super bad code. It doesn't even make sense. I think that's my definition of bad code. Even if it works, if it doesn't make sense; it's bad. For my task, we need to stop using Credit Notes and instead use Payment Allocat...

534 words