From: Daniel Harple Date: 2006-03-09T01:41:42+09:00 Subject: Re: Newbie: undefined method On Mar 8, 2006, at 5:23 PM, tim.hennekey@gmail.com wrote: > class TSPProcess > @name = "Nothing" > attr_reader :name > attr_writer :name > end The @name could be causing some problems. If you really want a default of "Nothing", you should move it to the #initialize method. def initialize @name = "Nothing" end Try: class TSPProcess attr_accessor :name end and in your template: <% @processes.each do |process| %> <%= render(:inline => "#{process.name or "Nothing"}")%> <% end %> > require 'TSPProcess' You should ruby's convention for file-naming: require 'tsp_process' > class ProcessesController < ApplicationController > def index > @processes = Array.new > a = TSPProcess.new > @processes << a > end > end You could shorten this to: class ProcessesController < ApplicationController def index @processes = [TSPProcess.new] end end -- Daniel