Joe wrote: > Please note I've also tried this: Tutorial.next_lesson(@tutorial.id, > @tutorial.category_id) > > Which results in some compile errors: wrong number of arguments (2 for > 0) > > I guess this is because my model doesn't take any parameters, and I'm > giving it 2... > > I'll be looking around for how I can make it accept 2 parameters (or > fix the previous error) but it would be nice if someone could help > out,
Check your method definition. It probably doesn't expect 2 parameters. If you're asking this sort of question, you really need to read Programming Ruby (available free at http://www.ruby-doc.org ). You can't do Rails development without an understanding of the Ruby language, and you'll get that understanding much faster by reading than by posting here. > > Thanks In Advance, > > Joe Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- 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 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.