title: How to render a view inside of another view (rails 4)
body: <p>Hi I want to preface this by saying that I am new to coding.</p>
  
  <p>I have an issue that I believe can be solved in two ways</p>
  
  <p>A. by rendering a partial</p>
  
  <p>B. by updating the controller</p>
  
  <p>( I can totally be wrong but these are what I suspect lol)</p>
  
  <p>I have two controllers/views "reviews" and "logs". and I want them to both appear on the same page.</p>
  
  <p>How can I do this?
  I tried rendering a partial but I alway get an error.</p>
  
  <p>and I tried the piece of code below:</p>
  
  <p>which made my reviews show up on the page, but when I add</p>
  
  <pre><code>@log = @user.logs.all 
  </code></pre>
  
  <p>to it, it doesn't pull all the logs to the page like it does for the reviews.</p>
  
  <pre><code>def show
    @user = User.find_by_name(params[:id])
    if @user 
      @reviews = @user.reviews.all
      render action: :show
    else
      render file: 'public/404', status: 404, formats: [html]
    end
  end
  </code></pre>