Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
From PHP to Ruby on Rails

You're reading from  From PHP to Ruby on Rails

Product type Book
Published in Dec 2023
Publisher Packt
ISBN-13 9781804610091
Pages 244 pages
Edition 1st Edition
Languages
Author (1):
Bernard Pineda Bernard Pineda
Profile icon Bernard Pineda

Table of Contents (15) Chapters

Preface 1. Part 1:From PHP to Ruby Basics
2. Chapter 1: Understanding the Ruby Mindset and Culture 3. Chapter 2: Setting Up Our Local Environment 4. Chapter 3: Comparing Basic Ruby Syntax to PHP 5. Chapter 4: Ruby Scripting versus PHP Scripting 6. Chapter 5: Libraries and Class Syntax 7. Chapter 6: Debugging Ruby 8. Part 2:Ruby and the Web
9. Chapter 7: Understanding Convention over Configuration 10. Chapter 8: Models, DBs, and Active Record 11. Chapter 9: Bringing It All Together 12. Chapter 10: Considerations for Hosting Rails Applications versus PHP Applications 13. Index 14. Other Books You May Enjoy

Project preparation

Prior to setting up our application, we are going to do some additional configuration, depending on the operating system. We will separate the configuration into two sections – Windows configuration and Linux-based systems (including macOS).

Windows configuration

In Chapter 7, we configured our Windows environment to use rbenv to be able to use Ruby 2.6.10. If you haven’t done so, please go back to the Installing Ruby on Rails in Windows section, as this is required for this chapter. For Rails 7 (which we will install in this chapter), we will require Ruby 3.1.1 installed and some dependencies that aren’t easily available for Windows. We will use the Git SDK’s bash shell (which we also installed in Chapter 7) to solve this issue. So, let’s open a Windows PowerShell and type the following command:

C:\git-sdk-64\git-bash.exe

This will open a Git Bash console, which looks and behaves a lot like a Linux shell. Let’...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}