Query involving join in rails
===

I am new to programming as well as rails. I have a basic question here.
I am doing a join query like " **FunctionCall.joins(:solution).where(:solutions => {:problem_id => 517})** " and the result is shown below

    FunctionCall id: 1, solution_id: 64453, function_id: 1
    FunctionCall id: 2, solution_id: 64429, function_id: 1
    FunctionCall id: 4, solution_id: 64453, function_id: 2

here is my Function table 

    function_id: 1 , name: sum
    function_id: 2 , name: det
     
Now what i wanted here is to add the Function.name attribute in my above table(from join query) like this 
   
    FunctionCall id: 1, solution_id: 64453, function_id: 1 , name: sum
    FunctionCall id: 2, solution_id: 64429, function_id: 1 , name: sum
    FunctionCall id: 4, solution_id: 64453, function_id: 2 , name: det

Could some1 please me help me in this ? Thanks. 
