vendredi 25 septembre 2015

How is this sent to the Show action

I am new to ruby on rails and i want to understand how this piece of code redirect to the show action thanks :

  def create
  @article = Article.new(params[:article])
 
  @article.save
  redirect_to @article
end

Aucun commentaire:

Enregistrer un commentaire