@MohabGhanim I have all the necessary data in the db, but I still can't see
the problem list when I navigate to 'http://localhost:3000/profile'. I can
only see the title '*Your Next Problems*'.


On Fri, Apr 18, 2014 at 4:26 PM, MohabGhanim <notifications@github.com>wrote:

> In tutor/app/models/student.rb:
>
> >
> > +	#Methods
> > +	# [Problem Assined - Story 5.5]
> > +	# Returns a Hash containing the next problem to solve in each course - topic - track
> > +	# Parameters: None
> > +	# Returns: A Hash of key as 'Course-Topic-track' and value as a Problem model instance
> > +	# Author: Mohab Ghanim (Modified from Rami Khalil's Story 3.9)
> > +	def get_next_problems_to_solve
> > +		next_problems_to_solve = Hash.new
> > +
> > +		courses.each do |course|
> > +			course.topics.each do |topic|
> > +				level = TrackProgression.get_progress(self.id, topic.id)
> > +
> > +				topic.tracks.each do |track|
> > +						if(track.difficulty == level)
>
> @linsara <https://github.com/linsara> You can insert records in the table
> with attributes (student_id = 1, topic_id = 1, level = 1) and (student_id =
> 1, topic_id = 2, level = 3) and continue the test.
> I thought that the database contained such records, but it looks like I
> have inserted them myself in previous tests.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/alaashafaee/Coolsoft-14/pull/246/files#r11773129>
> .
>