Last active
December 11, 2015 20:09
-
-
Save gsathya/4653096 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/controllers/register_controller.rb b/app/controllers/register_controller.rb | |
index a53db23..64fdd74 100644 | |
--- a/app/controllers/register_controller.rb | |
+++ b/app/controllers/register_controller.rb | |
@@ -10,10 +10,10 @@ class RegisterController < ApplicationController | |
@users = @search.results | |
unless @users.blank? | |
@user = @users[0] | |
- @college = CollList.college(@user.college).coll_name | |
- @course = Courses.course(@user.course).course | |
- @degree = Degrees.degree(@user.degree).degree | |
+ @college = CollList.find(@user.college).coll_name | |
+ @course = Courses.find(@user.course).course | |
+ @degree = Degrees.find(@user.degree).degree | |
@colleges = CollList.all | |
@courses = Courses.all | |
@degrees = Degrees.all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment