Prev | Current Page 78 | Next

David Berube

"Practical Reporting with Ruby and Rails"


Summary
In this chapter, you learned how you can create beautiful graphs in just a few lines of
code with graphing libraries like Gruff and Scuffy. You saw how to use Active Record and
Gruff to extract data from a database, and then create a graph from it with relatively simple
code. The Transmegtech Studios examples demonstrated how to take business data,
use Active Record to summarize the data into a useful form, and then use Gruff to present
it. You created detailed reports on an entire staff of people in just 77 lines of code!
So far, you??™ve learned how to perform calculations using Active Record and how to
use Gruff to create attractive charts. However, these tasks are only part of a large project.
Presenting the data to the users in a way they can use it is also important. The next chapter
explains how you can let users view and manipulate data on their desktop.
CHAPTER 3 n CREATING GRAPHS WITH RUBY 49
Creating Reports on
the Desktop
In the previous chapters, you??™ve learned about creating reports using Active Record.


Pages:
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
usługi remontowe wycieczki do Skandynawii traktorki ogrodowe skarpetki narciarskie męskie perfumy fm