J
Jonathan Heinen
Hi,
I just build my own class that looks like this
class Rechnungsdaten
attr_accessor :nummer
end
I saved this file as "rechnungsdaten.rb" in the models folder.
When I use this code:
@rechnung = Rechnungsdaten.new
@rechnung.nummer = @rechnungsnummer
I get this error message in my browser:
undefined method `nummer=' for #<Rechnungsdaten:0x3976148>
How could this be? I can't understand that! Or do I have to include the
class by using requieres? .... But why doesn't rails say me that it
can't find >> Rechnungsdaten <<?
Jonathan
I just build my own class that looks like this
class Rechnungsdaten
attr_accessor :nummer
end
I saved this file as "rechnungsdaten.rb" in the models folder.
When I use this code:
@rechnung = Rechnungsdaten.new
@rechnung.nummer = @rechnungsnummer
I get this error message in my browser:
undefined method `nummer=' for #<Rechnungsdaten:0x3976148>
How could this be? I can't understand that! Or do I have to include the
class by using requieres? .... But why doesn't rails say me that it
can't find >> Rechnungsdaten <<?
Jonathan