3 ms·
My mistake. I didn't read parent carefully enough. Although it is common to see something like: if(@post = Post.find(params[:id])) render @post else
by bradly 16y ago
My mistake. I didn't read parent carefully enough. Although it is common to see something like:
if(@post = Post.find(params[:id]))
render @post
else
render 'Post not found'
end