- form_for :user, :url => users_path do |f|
  %ul.register
    %li
...

Ruby Help Refactor this into Rai...

by Daniel Fischer, December 11, 2007 03:39, 6 refactorings, tagged with rails

I have no idea how to creat...

73af4fece11ee3767dc13e89cdc08500 Talk
def which_class?
  if self.language == "C/C++"
     self.language = "sh_cpp"
...

Ruby class picker

by Garrett, December 10, 2007 00:04, 8 refactorings, tagged with rails, ruby, activerecord, model

language is a column in a c...

E9674d02c33d1d711a462026f40bbaf4 Talk
def zipcode=(new_zipcode)
    if new_zipcode != self.zipcode
      write_attribute(zipcode, new_zipcode) #problem here
...

Ruby overwriting an activerecord...

by Alain, November 28, 2007 03:13, 1 refactoring, tagged with rails

I simply want to overwrite ...

Ca35abdcc0ebbaada3c935c2746ed5ea Talk
# Sample Output:
 #
 #  <tr>
...

Ruby Iterated printing in the he...

by XGamerX, November 18, 2007 03:52, 2 refactorings, tagged with rails, helper, radio button

Here is a function I have b...

55d6457963d5be7ad341343105ddc8a3 Talk
<%= (@post.category ? @post.category.name : '') + ' ' + link_to(@post.title, post_path(@post)) %>

Ruby Handling nil object

by macournoyer, November 14, 2007 02:07, 13 refactorings, tagged with rails, html

@post.category can be nil, ...

Bfec5f7d1a4aaafc5a2451be8c42d26a Talk
class PostsController < ResourceController::Base
...

Ruby resource_controller: Redesi...

by jamesgolick, November 05, 2007 20:27, 7 refactorings, tagged with rails, resource, restful

Backstory on my blog: http:...

F6eddf2f983d23c2d031e407852625e9 Talk
module ModelHelpers

  def self.included(base)
...

Ruby textilize model helper

by rpheath, November 02, 2007 03:01, 3 refactorings, tagged with rails, ruby, textile, filter

OK, so I just realized ther...

E635ccff7389d9070f5e7e9fe8b36beb Talk
namespace :migrations do
  
  desc 'reverts, renames and re-executes uncommitted migrations that conflict with already committed migrations'
...

Ruby Rails migration conflict re...

by danielharan, October 26, 2007 18:25, 1 refactoring, tagged with rails

Explained here: http://www....

880cbab435f00197613c9cc2065b4f5a Talk