• Use CRUD where you need in RoR development

    Use CRUD where you need to use CRUD

    Almost all web applications use CRUD (Create, Read, Update, and Delete) operations. You may find that most of your application's work is CRUD. Rails is aware of this and provides many features to simplify the code that implements CRUD.

     

    Let's explore these possibilities by adding more functionality to our application.

     

    7.1. Single article display

    Now we have a view that displays all the articles in our database. Let's add a new view showing the title and content of a single article.

     

    Let's start by adding a new route that points to a new controller action (which we'll also add later). Open config/routes.rb and paste the last route


    Tags Tags : , ,