def self.list
# some stuff
end
or you need to call it as an instance method
s = Sale.new
@stamp = s.list
or even
@stamp = Sale.new.list
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
Show us the current code and the error please.
Also please remember to quote the previous reply so we know what you
are replying to.
Colin