Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def dashboard
- @books = current_user.books
- @purchased = Sale.where(buyer_email: current_user.email)
- @sales = Sale.where(seller_email: current_user.email)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement