Meaning: trying something that is unlikely to succeed
Example: They say that trying to find gold is like chasing rainbows. The man was unsuccessful in all of his business schemes because they were always crazy. People said he was always chasing rainbows.
See this Idiom in a story: The Gingerbread Man