Tag: create a web application using ruby on rails

Article updates on website built with Ruby

We have revealed the “CR” part of CRUD. Now let’s focus on the “U” part, updating articles. The first step is to add an edit action to the ArticlesController, usually between the new and create actions, as shown. def new   @article = article.new end def edit   @article = Article.find(params[:id]) end def create   […]