Displaying 2 results from an estimated 2 matches for "stupi".
Did you mean:
stupid
2006 May 01
5
Adding classes without script\generate
Can I add classes to a rails application manually i.e without using
script generate Model/Controller?
The reason I am asking, I added a class by putting it in the controller
class. I can access the class and its method from command-line (irb),
but when I try to instantiate it in another controller, I get
"uninitialized constant" error.
If I try using script\generate Model
2006 May 02
0
RE: Rails Digest, Vol 20, Issue 39
...9-1; format=flowed
>
> 2006/5/2, Pradeep Sethi <psethi@gmail.com>:
> > I figured out the error.
> >
> > I needed to restart my server every time, I make a change to the class
> > file (because it is not a controller and/or Model...)
> >
> > feel like stupi..... :)
> >
>
> In 1.1, you can add "include Reloadable" in the model so that you
> don''t have to restart the whole server.
>
> Douglas
>
>
> ------------------------------
>
> Message: 9
> Date: Tue, 2 May 2006 17:50:35 +0200
> From...