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
[email protected]