Introduction to Rails

Abhishek Yadav

@h6165

Topics covered

  • Philosophy
  • Relevance and challenges
  • Static-like website using Rails

Philosophy

  • Opinionated
  • Cover the most common use cases
  • Convention over configuration
  • Use the power of Ruby: for expressiveness

Relevance, challenges

  • Popular framework since 2005
  • Competitors: Node.js, Django, Elixir-Phoenix, Php-Laravel, Java-J2EE, ASP.Net
  • Widely used by startups
  • Currently competitive in Job market

Challenges:

  • Learning curve
  • Concurrency in Ruby
  • Not hot anymore

Static-like website using Rails

rails generate controller home hello
  • Change the view file 
  • Add instance variable, use it in view
  • Add a loop in the view

ceg-0316-rails-intro

By Abhishek Yadav

ceg-0316-rails-intro

  • 899