namespace :db do
namespace :migrate do
desc 'Reverts, renames and re-executes uncommitted migrations that conflict with already committed migrations'
...
Ruby On Rails migration conflict re...
by macournoyer,
October 29, 2007 20:57
require 'rubygems' require 'active_support' ...
Ruby On Rubyize this : 4th edition
by Justin Jones,
October 29, 2007 07:08
Some pretty crazy method_mi...
class String
unless ''.respond_to?(:to_proc)
def to_proc(&block)
...
Ruby On String#to_proc (by Reginald...
by michiel,
October 28, 2007 18:35
Ok, I've removed the nested...
<%= f.text_field :first_name, :size => 15 %> <%= f.text_field :last_name, :size => 15 %> ...
Ruby On Three groups, three bits of...
by rpheath,
October 26, 2007 22:33
You could probably also do ...
def add_another(model_name, label = "Add another") ...
Ruby On Three groups, three bits of...
by Etandrib,
October 26, 2007 20:30
I also had to change the pa...
class Bug attr_accessor :type, :name, :iq, :annoyance_factor ...
Ruby On Rubyize this : 4th edition
by Chris T,
October 26, 2007 17:40
Similar to above but the me...
class Bug attr_accessor :type, :name, :iq, :annoyance_factor ...
<%= f.text_field :first_name, :size => 15 %> ...
Ruby On Three groups, three bits of...
by Kevin Ansfield,
October 25, 2007 18:30
Whenever I've had partials ...
<% yardage_rows do |color| %> <tr> ...
Ruby On Using partials for a golf s...
by rpheath,
October 24, 2007 22:13
Thanks, I ended up using a ...
<% %w[blue white red].each do |color| %> <tr> ...
Ruby On Using partials for a golf s...
by Ryan Bates,
October 24, 2007 16:46
You can refactor the yardag...
require 'rubygems' require 'active_support' ...
Ruby On Rubyize this : 4th edition
by michiel,
October 24, 2007 11:15
Building on Mark Van Holsty...
Ruby On Getting QWERTY misstypes
by Marco Valtas,
October 24, 2007 02:45
Hi, I don't how to write a ...
class Bug attr_accessor :name, :type, :iq, :annoyance_factor ...
class Bug attr_accessor :type, :name, :iq, :annoyance_factor ...
Ruby On Rubyize this : 4th edition
by Mike Abney,
October 23, 2007 23:22
Nothing too special here, j...
#!/usr/bin/env ruby class Keyboard ...
Ruby On Getting QWERTY misstypes
by Scott Patten,
October 23, 2007 17:14
Here it is. That would mak...
require 'rubygems' require 'active_support' ...
class Bug attr_accessor :type, :name, :iq, :annoyance_factor ...
class Bug attr_accessor(:bug_type, :name, :iq, :annoyance_factor) def initialize(name = "unnamed", bug_type = "spider", iq = 8, annoyance_factor = 4) ...
Ruby On Rubyize this : 4th edition
by Mike Woodhouse,
October 23, 2007 15:07
I'm wondering if I may have...
@keyboard_layout = [ "1234567890-=", "qwertyuiop[]", ...
Ruby On Getting QWERTY misstypes
by Joran Jessurun,
October 23, 2007 14:28
This is my attempt. Not rea...
This is the most useful rak...