ActiveRecord::RecordNotFound in PostsController#show

can't find record with friendly id: "merci-pour-la-decoration-de-la-commune"

Extracted source (around line #35):
33
34
35
36
37
38
              
def find_post
@post = Post.friendly.find params[:post]
if params[:post] != @post.slug
return redirect_to post_path(@post.slug), status: :moved_permanently

Rails.root: /home/viennemoul/www

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"post"=>"merci-pour-la-decoration-de-la-commune"}

Response

Headers:

None