[Rails] Re: can i have a model called FILE.RB?

2010-04-23 Thread Frederick Cheung
On Apr 23, 2:43 pm, Marnen Laibow-Koser wrote: > Ar Chron wrote: > > You can get by "reusing" a class name, but it's a PITA. > > > I had a model named Filter, then upgraded Rails at one point, and all > > sorts of ugly conflicts occurred since the new version of Rails included > > a Filter clas.

[Rails] Re: can i have a model called FILE.RB?

2010-04-23 Thread Marnen Laibow-Koser
Ar Chron wrote: > You can get by "reusing" a class name, but it's a PITA. > > I had a model named Filter, then upgraded Rails at one point, and all > sorts of ugly conflicts occurred since the new version of Rails included > a Filter clas. > > One solution is to reference the class to the local

[Rails] Re: can i have a model called FILE.RB?

2010-04-23 Thread Ar Chron
You can get by "reusing" a class name, but it's a PITA. I had a model named Filter, then upgraded Rails at one point, and all sorts of ugly conflicts occurred since the new version of Rails included a Filter clas. One solution is to reference the class to the local namespace, such as in the co

[Rails] Re: can i have a model called FILE.RB?

2010-04-22 Thread command0
Thanks for sharing that URL. Yeah, I've ran into a couple myself. Yeah, File is definitely a Ruby class name, which is inherited from the IO class. I tried making a model called both Application and Type in the same app actually. Let's just say it didn't go too well... ;) On Apr 22, 7:47 pm, Dav

[Rails] Re: can i have a model called FILE.RB?

2010-04-22 Thread David Zhu
uGH! im answering my own questions!. sorry guys ill think b4 i post next time. here are the reserved words- http://newwiki.rubyonrails.org/rails/pages/reservedwords On Apr 22, 8:44 pm, David Zhu wrote: > Is "file" reserved? Can i use it for my model name? Because I am > getting this error- > >