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, David Zhu <dzwestwindso...@gmail.com> wrote:
> 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 <dzwestwindso...@gmail.com> wrote:
>
> > Is "file" reserved? Can i use it for my model name? Because I am
> > getting this error-
>
> >  NoMethodError in FilesController#new
>
> > undefined method `quoted_table_name' for File:Class
>
> > --
> > 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 rubyonrails-t...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > rubyonrails-talk+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/rubyonrails-talk?hl=en.
>
> --
> 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 rubyonrails-t...@googlegroups.com.
> To unsubscribe from this group, send email to 
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to