The Buddha summarized the correct attitude and actions in the Eight-fold Noble Path:
(The first 3 are avoiding the 10 non-virtues of mind, speech and body
1. Correct thought: avoiding covetousness, the wish to harm others and wrong views (like thinking: actions have no consequences, I never have any problems, there are no ways to end suffering etc.)
2. Correct speech: avoid lying, divisive and harsh speech and idle gossip.
3. Correct actions: avoid killing, stealing and sexual misconduct
4. Correct livelihood: try to make a living with the above attitude of thought, speech and actions.
5. Correct understanding: developing genuine wisdom.
(The last three aspects refer mainly to the practice of meditation
6. Correct effort: after the first real step we need joyful perseverance to continue.
7. Correct mindfulness: try to be aware of the "here and now", instead of dreaming in the "there and then".
8. Correct concentration: to keep a steady, calm and attentive state of mind.
Hmmm wonder what it means "avoid sexual misconduct"?... I kinda enjoy some kink! hehe