Finish toy app

parent 805869b6
Pipeline #1204 failed with stages
in 0 seconds
class ApplicationController < ActionController::Base class ApplicationController < ActionController::Base
def hello
render html: "hello, world!"
end
end end
class Micropost < ApplicationRecord class Micropost < ApplicationRecord
belongs_to :user
validates :content, length: { maximum: 140 } validates :content, length: { maximum: 140 }
end end
class User < ApplicationRecord class User < ApplicationRecord
has_many :microposts
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment