Hello,
I have a Project Index View that shows all the projects in an app
I want that view to show if the user signed in is a member or not....
In the Project Index View I have:
    <% if teammember? %>
        <td>Request to Join</td>
    <% else %>
        <td>Already Joined</td>
    <% end %>
Then in the project's controller I have
def teammember(projectid)
 do some stuff.....
end 
But this gives me a "undefined method `teammember?"