-
Book Overview & Buying
-
Table Of Contents
The Ruby Workshop
By :
Now that you've been introduced to the theory concerning Ruby on Rails, it's time for us to create our first Rails application and learn about the anatomy of a Rails app.
Rails commands are built-in scripts that help to speed development by handling most of the everyday tasks encountered in day-to-day development. Some popular ones are listed here:
rails new app_nameThis generates a new Rails application with a file structure for the Rails application.
rails serverThis starts a web server named Puma to host a Rails application. This application, by default, is served on localhost port 3000. Puma is a web server that comes prepackaged with Rails. It's best suited for local development.
rails console This helps you interact with the Rails application using your Terminal. The Rails console is a nifty tool that uses IRB. It's a fast way to test your code for a Rails application.
rails testBy default, Rails comes...
Change the font size
Change margin width
Change background colour