From 554e0bd9c86b2b5373465a221607540fa22116c8 Mon Sep 17 00:00:00 2001
From: root
Date: Sat, 10 Jan 2026 16:29:27 +0000
Subject: [PATCH] more shit
---
app/controllers/posts_controller.rb | 2 +-
app/views/layouts/application.html.erb | 2 +-
app/views/members/show.html.erb | 4 ++--
app/views/posts/index.html.erb | 3 ++-
app/views/posts/show.html.erb | 28 ++++++++------------------
5 files changed, 14 insertions(+), 25 deletions(-)
diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb
index 93c877b..dfc97e1 100644
--- a/app/controllers/posts_controller.rb
+++ b/app/controllers/posts_controller.rb
@@ -7,7 +7,7 @@ class PostsController < ApplicationController
before_action :set_post, only: [:show, :edit, :update, :destroy]
def index
- @posts = @blog.posts
+ @posts = Post.order(created_at: :desc)
end
def show
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 172cf5c..0c18633 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -31,7 +31,7 @@
-
+
diff --git a/app/views/members/show.html.erb b/app/views/members/show.html.erb
index 971d9d9..d2609d2 100644
--- a/app/views/members/show.html.erb
+++ b/app/views/members/show.html.erb
@@ -58,12 +58,12 @@
-
+
diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb
index 63143d1..1c8c2ee 100644
--- a/app/views/posts/show.html.erb
+++ b/app/views/posts/show.html.erb
@@ -6,34 +6,22 @@
- Content:
+
<%= @post.text %>
+
+<% if @post.music.present? %>
Currently Listening To...:
<%= @post.music %>
+ <% end %>
+<% if @post.mood.present? %>
Current Mood:
- <%= @post.mood %>
-
-
+
+
Comments
- <%= render @post.comments %> -add a comment... - <%= form_with( - model: [@post.blog.member, @post.blog, @post, Comment.new], - local: true - ) do |form| %> - - <%= form.label :commenter %>- <%= form.text_field :commenter %> -
- <%= form.label :body %>
- <%= form.rich_text_area :body %> - - <%= form.submit %> + <%= @post.mood %> <% end %> -