Applying fundamentals of Ruby on the Rails