mercredi 14 mai 2014

Need to print out a method in ruby


Vote count:

0




I am using a gem called http://ift.tt/XRhb6Q ...have everything working brilliant until I want to print this method in the VIEW of my application



Gioco::Ranking.generate


Now this method works in the console perfectly, since I am a beginner In ruby on Rails I don't know the best technique to print this method on screen. Do I put it in a method like so



def graph
Gioco::Ranking.generate
end


Thanks for the help



asked 2 mins ago






Aucun commentaire:

Enregistrer un commentaire