So I have a user model and a store model created. I am having a problem displaying the name of a store that has already been created in my database. It's a very stupid problem, with a very easy solution, but I just can't figure out what I'm doing wrong. So here is my user controller where I find the store I want to display:
def show
@user = User.find(params[:id])
@store = Store.find(1)
end
And here is the view:
<% provide(:title, @user.username) %>
<div class="row">
<aside class="col-md-4">
<section class="user_info">
<h1>
<%= gravatar_for @user %>
<%= @user.username %>
</h1>
</section>
</aside>
</div>
<li><% @store.name %></li>
So the name of the user shows up, no issues there, but for some reason, the name of the store is not showing up. I know as a fact that there is a store with an id: 1 in the database. Any help here would be greatly appreciated!