rails postings

Replaceable render engines for Formtastic

One of the things I love about Formtastic is the semantic DSL for specifying a form in my code. One of the things that can frustrate me is the resulting DOM that is generated.


rails

SaasRamp Screencast

SaasRamp is an open source Rails plugin which enables subscription billings in your application. This screencast demos SaasRamp and explores the generators and features built into the plugin.


rails

BaseWithoutTable

The BaseWithoutTable Rails plugin is handy for making models that don't have a corresponding database table. I started using it about a year ago and thought I do a little writeup about it.


rails

Show me the response

Using Cucumber, the executable plain-text documentation tool, you may want to see the current page in a scenario. I use a generic "And (show me)" step.


rails | webdev

Oh my, my, my

A technique for handling routes to resources that the current user owns.


rails

Eat Gooey Cookies

How I'm using cookies to communicate non-critical user activity back to the server. My application and this example uses Ruby on Rails with jQuery for client-side javascript, and the jQuery cookie plugin. and JSON .


rails | webdev

Won't Paginate

I had a problem with will_paginate when giving it a page number and per_page settings that are out of range, resulting in an empty table on the page. And here's how I solved it.


rails

has one of many

Lets you make has_many associations look like a has_one (Note, i've renamed it, was has_one_current (Nov 14))


rails

List methods for nested sets

Unfortunately better_nested_set (and acts_as_nested_set) lacks the list methods provided by acts_as_list. Here's a module that provides them.


rails

options for select with style

Here's a variant of Rails' options_for_select helper which lets you add styles to the options, such as for adding icons the the dropdown select.


rails

Choosing a Schema for Dynamic Records

I want users to be able to design their own forms, and collect data submitted on those forms. An important decision is the design of how these custom dynamic records are stored and accessed.


rails

Getting Started with Story Runner

Here's a short how-to, cobbled together from various other articles, emails, and generous help on #rspec. Consider this a stop-gap until documentation is up on the Rspec site.


rails