MaD wrote: > it's always hard to tell what's wrong with other people's code, but > let's give it another try: > - you said a simple Photo.find(params[:id]) wouldn't work. well, that > could mean either params[:id] is not set or set to a value that > doesn't exist. did you set a debugger and look at your params? what > did it tell you? > > - i gotta stress this point once more: make use of the (really great) > debugger! that way you can see what's going on inside your code. set a > debugger, point your browser to that location, launch irb and hack > along!
I manage to solve it, but a new problem arises. This time it happens when I tried to upload a photo. NameError in User photosController#index uninitialized constant UserPhotosController::Paginator RAILS_ROOT: C:/INSTAN~1/rails_apps/museum Application Trace C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:478:in `const_missing' app/controllers/user_photos_controller.rb:6:in `index' What should I do? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

