The Entreprexplorer's Journal

A journal of one (currently young) man's journey into entrepreneurism. Including entrepreneurial thoughts, ideas, tribulations, experiences, etc. See where it goes...


  Subscribe to this blog!

My Photo
Name:
Location: San Francisco, California, United States

I am an entrepreneur based in San Francisco, CA. My current entrepenurial project is CommunityWalk.com.

Saturday, July 16, 2005

Rails write_attribute failing

For some reason with the update to the latest Rails gem the write_attribute method has started to fail for me.

This Does Nothing

def index=(value)
write_attribute(:index, value)
end

def index
read_attribute(:index)
end

This Works

def index=(value)
self[:index] = value
end

def index
return self[:index]
end


Just thought I would share because I couldn't find anything about this on the web.

0 Comments:

Post a Comment

<< Home