def filename
  self.uri.split('/').last
...

C# Get the Filename segment o...

by jwmittag, January 01, 2008 15:04, 11 refactorings, tagged with Comparison, Scott Porad, asp.net, DotNET, .net, C-Sharp, CSharp, C#, RoR, Ruby on Rails, rails, ruby

On his Blog "Progress vs. P...

89f45d140c5d9b14fd63720ea8b0cb47 Talk
before:

def list_for_blogentries(user)
...

Ruby Refactor my blog item helper

by winson, December 19, 2007 07:32, 20 refactorings, tagged with rails

I have a helper to show all...

0f9b6b2dd5ecff193f6dd78502ce1a13 Talk
def favorite
    message = Message.find params[:id]
        
...

Ruby Refactor my favorite action.

by winson, December 12, 2007 06:20, 14 refactorings, tagged with rails

My code looks lousy, please...

0f9b6b2dd5ecff193f6dd78502ce1a13 Talk
- 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
Element.addMethods({
  pngHack: function(el){
    var el = $(el);
...

JavaScript pngHack

by getopenid.com/deleteme, November 15, 2007 03:40, 1 refactoring, tagged with rails, image, png, img, prototype, hack

Makes 32 bit PNG's transpar...

Db11d496fa96adac53b422feb6efd493 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