Hi Michael -- I am using Ruby v1.9.2p290, Rails v3.2.2, and rvm 1.8.5. I checked to see if I had duplicate files, but to no avail. I will do some deep digging this morning. If I find a solution, I'll post it.
Thanks for your help. Andy On Mar 12, 12:17 am, Michael Pavling <[email protected]> wrote: > On 9 March 2012 19:52, AndyLikesRuby <[email protected]> wrote: > > > I am getting this error message when I try to hit a certain URL: > > >http://localhost:3000/captionfiles > > > NoMethodError in CaptionfilesController#index > > undefined method `all' for Captionfile:Class > > app/controllers/captionfiles_controller.rb:5:in `index' > > > @captionfiles = Captionfile.all > > > class Captionfile < ActiveRecord::Base > > There's nothing, at first glance, wrong with your code. So can you > just confirm which version of Rails you have installed. Older (very > old!) versions didn't have ".all", you had to use ".find(:all)". But > if that's your problem, you must be on Rails 1.x, and that won't be > the last of your problems... -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

