aidengleave/acebook-desk-warriors

View on GitHub
app/controllers/walls_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class WallsController < ApplicationController
  before_action :authenticate_user!
  
  def index
    @walls = User.all.order("user_name")
  end

  def show
    @posts = Post.all.where(wall_user_id: params[:id]).order("updated_at DESC")
    session[:wall_user_id] = params[:id]
    @post = Post.new
  end
end