audibleblink/jQuerious — pull request #1 by labe (2013-09-11 17:38:25+00:00)
Title: .

* create join table and model for users and surveys (when a user takes a survey, it should be recorded)
* move helper methods (except current_user) into the controller and/or the model
* move first into the controller then refactor into the model where appropriate
* read http://guides.rubyonrails.org/association_basics.html
* look into aliases
* :source and :class_name and :foreign_key
* look into :include
* look into :dependent => :destroy
* think about creating a JS "class" (function) called surveyUI and define all the AJAX calls, etc. as named functions belonging to surveyUI, then bind those named functions to events in your $(document).ready