I just build my own class that looks like this
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 <<?
On Jul 19, 2006, at 7:00 PM, Jonathan H. wrote:
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 <<?
Rails questions go on the Rails mailing list.
Eric H. - [email protected] - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant
I solved this problem with the help of a german RoR forum.
The problem is that you have to reload the server when you made changes
in the source!
But you also can add
to your class so it will be reloaded automaticly!
Jonathan H. schrieb: