From the course: Hands-On Introduction: Ruby on Rails

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Testing the pages

Testing the pages

- [Instructor] We now have a functional application thanks to the scaffold generator. Let's see what it looks like. Start the server and load the app in the browser. This is the root page, but the generator has created the pages in the post URL. This is the listing, which is empty for now. Let's create a new post. Notice the minimalism design of these pages. This is thanks to the tail CSS integration. Other integrations create much more basic pages, but at least they are fully functional. Type in anything. For example, my first post in Rails. It's now created, and Rails redirects to the post page as you can see in the URL. There are several buttons on this page. The first one is to edit the post. Let's add an exclamation mark, and the change is done. If you go back to the editor, you can see all the actions you've been doing in the terminal. Here you can see the SQL statement that updated the post. Returning to the browser, you can see the list by clicking here. Let's create a second…

Contents