Ruby indentation in GitHub editor

Hey guys, I am a beginner in ruby and I want some help

I am not sure whether I am in the right place to ask this question. Anyway, this is the question

I am having a problem with the ruby indentation in the GitHub editor. My code in GitHub looks like this.

2021-03-05-11-06-github.com

How can I fix this

Please inform me if I have to edit the question or add more details

Thank you

Hey @pranavbaburaj and welcome! You have definitely come to the right place!

Just to clarify: did you write the code locally in your own editor and are viewing it on GitHub? Or are you using the GitHub Web editor?

I tried both, but the same result

Well, if your local editor is also showing symptoms, the problem might be there. On what platform are you and what editor do you use?