ruby on rails redirect_to with instance variable
ruby, ruby-on-rails
Solution
It redirects (through Rails magic located in `url_for`, if I remember correctly) to article's `show` page.
Problem
I am beginner in Ruby on Rails and want to understand how come redirect_to an instance variable. ``` def create @article = Article.new(params[:article]) @article.save redirect_to @article end ``` what does redirect_to @article imply?