Railsify!

James Coglan (jcoglan)

AttrLocked by James Coglan (jcoglan) in Security & Protection, HTML Helpers, and ActiveRecord

+AttrLocked+ is a little Rails plugin that provides extra security for your +ActiveRecord+ models. It lets you specify, at the model level, that certain model attributes should never be allowed to change. Perfect for usernames or financial record-keeping.

Grape by James Coglan (jcoglan) in Utilities and Rake Tasks

Grape is a small plugin that aims to provide grep-like functionality to Rails projects. It‘s what you get if you mash the words rake and grep together. Its author spends too much time on Windows machines and needs to search his .rb files without opening all of them at once in Notepad++. Usage is simple:

Holly by James Coglan (jcoglan) in File Management, HTML Helpers, and Rake Tasks

Holly is an automated dependency manager for JavaScript and CSS assets in Ruby on Rails projects.

IncludeByDefault by James Coglan (jcoglan) in ActiveRecord

This plugin allows you to specify which associations should be eager-loaded automatically when you do a find on one of your models. Read about eager loading in the Rails docs: api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html This saves you having to write :include all over the place to minimise your database queries. Instead, you can put whatever you‘d usually specify using :include in one declaration in your model.

LabelHelper by James Coglan (jcoglan) in HTML Helpers

Rails has no helper for label tags, which are important accessibility/usability features of forms. You shouldn‘t have to repeat yourself when writing labels for things.