Code Colossus

Ben Hughes on Software

← All posts

Tag: Rails Techniques

Using ActiveModel::Name to simplify URL generation

Read more →

Why you should always validate maximum lengths in models, and how to do so easily

Read more →

Take Control of your Field Values with nilify_blanks

Read more →

ActiveRecord Drafts with has_draft

Read more →

message_block: a error_messages_for replacement for flash message and model error handling

Read more →

Nested URL Parameters

Read more →

User Alert Management with flash and ActiveRecord::Errors

Read more →

HTML-Aware Truncate Text

Read more →