I am getting the error message "wrong number of arguments error(1 for 0) in my posts controller in my show action. I will comment the end of that specific line. Thanks for the help.
def show
@post = Post.all(:order => 'created_at DESC') #this is the error line
end
def new
@post = Post.new
end
def create
@post = Post.new(params[:post])
if @post.save
redirect_to @post
else
render :new
end
end