Ruby on Rails Sunday, February 5, 2017
On 4 February 2017 at 21:18, Denis K <email@example.com> wrote:
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.saveredirect_to @articleelserender 'new'endendAs I understand posting new article with invalid title should invoke else statement and render [/new] with error messageIt 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?
Look in log/development.log to see what is logged when you do the post and you may get some useful information.
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 firstname.lastname@example.org.
To post to this group, send email to email@example.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtASh4rVYZxQmfKELhmVnEEcRoHQpChRV%2BeK1cbLuSwUw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Posted by Ruby on Rails at 1:02 AM