I have a Problem and a Solution model. Problem has many solutions and Solution belongs to problem.
I need to get the recently solved problem, that means, get the last X solutions and get it's problem. I'm pretty sure there's a way to do this with named_scopes but I can't figure it out.
Any help is really appreciated :-)
Thanks,
Nicolás Hock I.