rushingfitness/syrian — pull request #1 by tamouse (2013-09-01 04:21:33+00:00)
Title: Fixes problems with saving records.

Changed params[:users] to params[:user] in controller: The form returned parameters under the hash key :user, not :users.

Added attr_accessible in model. Fields you are creating or updating need to be accessible.

Further issues: the create method called 'render' on both index and new. This will never run the the controller's index method, thus the @users instance var will never get set, thus throwing a nil squawk in your view. Changed to redirect_to 'index' instead.