Hi,

I'm new to Rails and going through "Getting Started with Rails" 

I've stuck in step 5.10:
def create
  @article = Article.new(article_params)
  if @article.save
    redirect_to @article
  else
    render 'new'
  end
end

As I understand posting new article with invalid title should invoke else 
statement and render [/new] with error message

It shows error but throws to [http://localhost:3000/articles], instead of 
[http://localhost:3000/articles*/new*]

Is it how it supposed to work? 
Or what am I doing wrong?

<http://dl4.joxi.net/drive/2017/02/05/0009/0795/623387/87/6d665b2eed.jpg>

Thank you all in advance!



-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/d8d3163b-98ec-4a0a-a540-69fd80ac3752%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to