Tag: ruby on rails tutorial (3rd ed.) learn web development with rails pdf

Ruby on Rails model which process comments on articles

Generating a Model We intend to use the same generator that we used earlier when creating the Article model. This time we will create a Comment model containing a link to the article. Run the following command in a terminal: $ bin/rails generate model Comment commenter:string body:text article:references This command generates four files: File Destination […]