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

This is the most useful rak...

Bfec5f7d1a4aaafc5a2451be8c42d26a Talk
require 'rubygems'
require 'active_support'

...

Ruby On Rubyize this : 4th edition

by Justin Jones, October 29, 2007 07:08

Some pretty crazy method_mi...

1a18d240b68c5cad64a205a8c17442a7 Talk
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 Star_full

Ok, I've removed the nested...

7c45f63f61e478233f0c2ad3006b178c Talk
<%= 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 Star_fullStar_fullStar_fullStar_full

You could probably also do ...

E635ccff7389d9070f5e7e9fe8b36beb Talk
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...

6b5a68d41436ce28831a0e0ca6bcd124 Talk
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...

D41d8cd98f00b204e9800998ecf8427e Talk
<<-HELLO + <<-WORLD
hello,
HELLO
...

Ruby On Need explaination

by Ben Burkert, October 26, 2007 06:07 Star_fullStar_fullStar_fullStar_fullStar_full

That's actually a little sy...

4d1c9dad17af98e55cb65b4efce27c42 Talk
class Bug
  attr_accessor :type, :name, :iq, :annoyance_factor	
	
...

Ruby On Rubyize this : 4th edition

by Calvin Yu, October 26, 2007 00:17 Star_fullStar_fullStar_fullStar_full
0867ef12857eb0b0b43ea207df5884e4 Talk
<%= f.text_field :first_name, :size => 15 %> 
...

Ruby On Three groups, three bits of...

by Kevin Ansfield, October 25, 2007 18:30 Star_fullStar_fullStar_fullStar_full

Whenever I've had partials ...

D9ff9c1eba9a908e3454d414b61f874f Talk

Ruby On Need explaination

by daveg, October 25, 2007 18:11

The part I didn't understan...

584559348afbc5cc06c46c3b5746313a Talk
<% @@content_for_layout = "<script>alert('I can do whatever I want here!')</script>" %>

Ruby On Need explaination

by macournoyer, October 25, 2007 15:43

That might be a security ho...

Bfec5f7d1a4aaafc5a2451be8c42d26a Talk
@text = ERB.new(params[:textarea_body]).result(binding)

Ruby On Need explaination

by rpheath, October 25, 2007 02:36

So if I wanted to build an ...

E635ccff7389d9070f5e7e9fe8b36beb Talk
require 'erb'

text = <<-EOS
...

Ruby On Need explaination

by macournoyer, October 25, 2007 02:31

ERB.new last parameter spec...

Bfec5f7d1a4aaafc5a2451be8c42d26a Talk
<% 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 ...

E635ccff7389d9070f5e7e9fe8b36beb Talk
<% @post.images.each do |image| %>
  <%= check_box_tag "image_ids[]", image.id -%>
...

Ruby On attachment_fu integration

by rpheath, October 24, 2007 21:49 Star_fullStar_fullStar_fullStar_full

I'm not completely sure I g...

E635ccff7389d9070f5e7e9fe8b36beb Talk
<% %w[blue white red].each do |color| %>
<tr>
...

Ruby On Using partials for a golf s...

by Ryan Bates, October 24, 2007 16:46 Star_fullStar_fullStar_fullStar_full

You can refactor the yardag...

D41d8cd98f00b204e9800998ecf8427e Talk
require 'rubygems'
require 'active_support'

...

Ruby On Rubyize this : 4th edition

by michiel, October 24, 2007 11:15

Building on Mark Van Holsty...

7c45f63f61e478233f0c2ad3006b178c Talk

Ruby On Getting QWERTY misstypes

by Marco Valtas, October 24, 2007 02:45

Hi, I don't how to write a ...

0706636fd5e30fa66019d7ffacdb5b11 Talk
class Bug
  attr_accessor :name, :type, :iq, :annoyance_factor

...

Ruby On Rubyize this : 4th edition

by Shalev, October 24, 2007 00:26 Star_fullStar_fullStar_fullStar_full

Shortest complete solution....

51a9109ac81a962fe2a9641821c9e2b7 Talk
class Bug
	attr_accessor :type, :name, :iq, :annoyance_factor
	
...

Ruby On Rubyize this : 4th edition

by Mike Abney, October 23, 2007 23:22 Star_fullStar_fullStar_full

Nothing too special here, j...

45a4605513f333896475b723378712ee Talk
#!/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...

5392d0a82eb7a8d8c6246f9dbbc2244a Talk
require 'rubygems'
require 'active_support'

...

Ruby On Rubyize this : 4th edition

by Mark Van Holstyn, October 23, 2007 17:09 Star_fullStar_fullStar_fullStar_full
F9ac05fdd57915983ccea58699e1f942 Talk
class Bug
  attr_accessor :type, :name, :iq, :annoyance_factor
	
...

Ruby On Rubyize this : 4th edition

by Panya, October 23, 2007 16:29
D41d8cd98f00b204e9800998ecf8427e Talk
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...

5978e2ed3a31f1bd2361dbb919d92012 Talk
@keyboard_layout = [
  "1234567890-=",
  "qwertyuiop[]",
...

Ruby On Getting QWERTY misstypes

by Joran Jessurun, October 23, 2007 14:28

This is my attempt. Not rea...

8a5ceb33f545ea53db6b7832bf999846 Talk