Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please type your username.

Please type your E-Mail.

Please choose an appropriate title for the post.

Please choose the appropriate section so your post can be easily searched.

Please choose suitable Keywords Ex: post, video.

Browse

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Navigation

  • Home
  • About Us
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Contact Us
Home/ Questions/Q 9027

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Latest Questions

Author
  • 60k
Author
Asked: November 28, 20242024-11-28T06:35:16+00:00 2024-11-28T06:35:16+00:00

Understanding Ruby On Rails in 10 Tweets

  • 60k

Introduction

Ruby on Rails is a full-stack web app building framework made with the Ruby programming language.

Ruby has clean, simple syntax without tons of parenthesis, brackets, or semi-colons

Github, Shopify, Calendly, ThePracticalDev, eggheadio & ConvertKit were built using Rails.

By the end, you will have a brief understanding of Ruby On Rails.

  1. unknown tweet media content
    Will profile image

    Will
    @willjohnsonio
    twitter logo

    1️⃣ Ruby on Rails is a full-stack web app building framework made with the Ruby programming language.

    Ruby has clean, simple syntax without tons of parenthesis, brackets, or semi-colons

    @github @Shopify @Calendly @ThePracticalDev @eggheadio & @ConvertKit were built using Rails

    15:55 PM – 04 Jan 2021
    Twitter reply action Twitter retweet action 3 Twitter like action 37

  2. unknown tweet media content
    Will profile image

    Will
    @willjohnsonio
    twitter logo

    2️⃣. Rails use the MVC(Model. View. Controller) programming pattern to organize and separate your code.

    This makes it easier to know where things are and how they are connected which gives you more time to focus on building features users need

    15:55 PM – 04 Jan 2021
    Twitter reply action Twitter retweet action 4 Twitter like action 33

  3. unknown tweet media content
    Will profile image

    Will
    @willjohnsonio
    twitter logo

    3️⃣. Models represent the data in your apps.

    You define models to make sure any new models match before being saved.

    You can also associate different models with each other. For example users and their comments and/or articles.

    15:55 PM – 04 Jan 2021
    Twitter reply action Twitter retweet action 1 Twitter like action 26

  4. unknown tweet media content
    Will profile image

    Will
    @willjohnsonio
    twitter logo

    4️⃣ Views is what gets displayed to users. It's written just like plain HTML

    You can you embedded Ruby(eRB) to put Ruby code inside of your views to display data from the database. You can display multiple users username writing just one line of code!

    15:55 PM – 04 Jan 2021
    Twitter reply action Twitter retweet action 1 Twitter like action 27

  5. unknown tweet media content
    Will profile image

    Will
    @willjohnsonio
    twitter logo

    5️⃣ Controllers are where you tell your app what to do with your data and what to show to your views.

    You can grab all users from the database and tell Rails to display them after a user logs-in or click a link to the user index page.

    15:55 PM – 04 Jan 2021
    Twitter reply action Twitter retweet action 0 Twitter like action 24

  6. unknown tweet media content
    Will profile image

    Will
    @willjohnsonio
    twitter logo

    6️⃣. Partials are Views you can share to keep you from re-writing the same code multiple times.

    A user sign-up and user edit are both forms with emails, passwords, etc.

    You can write the form once and use it in any view with the render keyword and eRB syntax.

    15:55 PM – 04 Jan 2021
    Twitter reply action Twitter retweet action 0 Twitter like action 22

  7. unknown tweet media content
    Will profile image

    Will
    @willjohnsonio
    twitter logo

    7️⃣. Helpers are another way Rails keeps you from rewriting the same code.

    Rails has built-in helpers for common things like formatting numbers. You can make your own helpers in the app/helpers folder and use them in your views with eRB.

    15:55 PM – 04 Jan 2021
    Twitter reply action Twitter retweet action 0 Twitter like action 21

  8. unknown tweet media content
    Will profile image

    Will
    @willjohnsonio
    twitter logo

    8️⃣. Testing is made easy in Rails.

    A test folder is made with each new Rails app.

    Each time you create a new model or controller it creates a test file as well.

    Testing library minitest is built in. Use the test method with assertions to check for expected outcomes.

    15:56 PM – 04 Jan 2021
    Twitter reply action Twitter retweet action 0 Twitter like action 21

  9. unknown tweet media content
    Will profile image

    Will
    @willjohnsonio
    twitter logo

    9️⃣. Gems are like plugins you add to Rails to gain new functionality.

    Some gems handle complex things like authentication and payments. Gems are located in Gemfile in the root of your Rails app.

    15:56 PM – 04 Jan 2021
    Twitter reply action Twitter retweet action 0 Twitter like action 20

  10. unknown tweet media content
    Will profile image

    Will
    @willjohnsonio
    twitter logo

    🔟. Routing tells your application where things go.

    Each path is linked to an action inside the controller.

    The users path shows all users which is linked to the index action inside the controller. Which matches the users index view.

    15:56 PM – 04 Jan 2021
    Twitter reply action Twitter retweet action 0 Twitter like action 26

Concolusion

Ruby on Rails is, as I think of it, is very similar to Django and very fun. Coming across those tweets by @willjohnsonio on Twitter I couldn't resist sharing them here.


PS: You can find him here on twiiter and here here on dev

programmingrailsrubywebdev
  • 0 0 Answers
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question

Stats

  • Questions 4k
  • Answers 0
  • Best Answers 0
  • Users 1k
  • Popular
  • Answers
  • Author

    How to ensure that all the routes on my Symfony ...

    • 0 Answers
  • Author

    Insights into Forms in Flask

    • 0 Answers
  • Author

    Kick Start Your Next Project With Holo Theme

    • 0 Answers

Top Members

Samantha Carter

Samantha Carter

  • 0 Questions
  • 20 Points
Begginer
Ella Lewis

Ella Lewis

  • 0 Questions
  • 20 Points
Begginer
Isaac Anderson

Isaac Anderson

  • 0 Questions
  • 20 Points
Begginer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help

Footer

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore, ask, and connect. Join our vibrant Q&A community today!

About Us

  • About Us
  • Contact Us
  • All Users

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Help

  • Knowledge Base
  • Support

Follow

© 2022 Querify Question. All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.