Skip to content

Commit 06db11d

Browse files
committed
models seem to be working
1 parent 165f6d6 commit 06db11d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/javascript/packs/myjs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
$(function(){
22
console.log("got here");
3-
//$.get("plans/1.json", function(data){
4-
// console.log(data);
5-
//});
3+
$.get("plans/1.json", function(data){
4+
console.log(data);
5+
});
66
});
77

88
class Course {

app/models/user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ class User < ApplicationRecord
33
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
44
devise :database_authenticatable, :registerable,
55
:recoverable, :rememberable, :validatable
6-
has_many(:plans)
6+
has_many :plans
77
belongs_to :major
88
end

0 commit comments

Comments
 (0)