Commit 5ad6e140 by Đường Sỹ Hoàng

Fixed coding styles

parent 4348edea
class Micropost < ApplicationRecord class Micropost < ApplicationRecord
belongs_to :user
default_scope -> { order(created_at: :desc) } default_scope -> { order(created_at: :desc) }
mount_uploader :picture, PictureUploader mount_uploader :picture, PictureUploader
belongs_to :user
validates :user_id, presence: true validates :user_id, presence: true
validates :content, presence: true, length: { maximum: 140 } validates :content, presence: true, length: { maximum: 140 }
validate :picture_size validate :picture_size
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</div> </div>
</div> </div>
<% else %> <% else %>
<div class="center jumbotron"> <div class="center jumbotron">
<h1>Welcome to the Sample App</h1> <h1>Welcome to the Sample App</h1>
<h2> <h2>
......
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