Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Joseph Hall
10,865 PointsBuilding A Survey Application in Ruby on Rails
Hi Treehouse Members and Staff,
I want to replicate Survey Monkey for a small, in-company analytics project. For this, I plan to have a custom link where a user can take a survey, and an admin panel where my fellow co-workers can login and examine and query survey results.
An example is found here of what I want to create: http://dribbble.com/shots/1390801-Mixpanel-Survey-Analytics-UI-UX/attachments/201133
1) How could I get data from a form (the survey taken by a user), and parse it into a graph/table/reportable format inside of a dashboard. (is there a tutorial or gem you know of that may solve this issue?)
2) In general, are there any other suggestions for building a system like in the link above?
3) In the future, how could I replicate Mixpanel is a small scale way to measure traffic and data on a site?
Thanks!
Joseph Hall
2 Answers
Brandon Barrette
20,485 PointsI suggest taking a look at this:
http://railscasts.com/episodes/196-nested-model-form-revised
From there, you can get the survey working and data into the database. Then, you can build a controller to handle the data and create the charts, graphs, and data tables that you want.
Alex Lopez
2,042 PointsIt is a good start and I'm doing something like that, but after you create a survey how you convert that in some kind of form where a user can respond and keep I'm mind that maybe there is correct and fake answers, more like an exam.. Do you have some resources in mind where I can learn this? Thanks