Designer starts on the project a week ahead of programmer. Gathers requirements (with the programmer tagging along). Does paper sketches which get a general a-ok from everyone.
Does html prototype, ideally already in rails.
Hands off to developer, developer wires up. Over time they iterate together on the same codebase.