It continues with the same error. I have created with a scaffold a
posts_controller:
class PostsController < ApplicationController
rescue_from Activerecord::NoMethodError. with => :not_found
You've got several typos in here. What's actually in your posts
controller?
In addition NoMethodError sounds like a bad thing to be rescuing like
this. What's the real problem you're trying to solve?