Code review request


#1

Hello.
Can I ask for a little review of my code?
I have been a php-developer for a long time. I really want to learn professional programming on rubi / ruby on rails.
This is my class, this is my controller. Please tell me what needs to be changed?
The app works well, my question is about code style only.

Thanks in advance, always yours.
Alexey