I have a Rails app built on a scaffold. For some reason, whenever I try to go to the index page from the edit page, I get the following error:
ActionController::ParameterMissing in PostsController#create
and the only parameter it has is the authenticity token:
Parameters: {"authenticity_token"=>"foobarbazrandomcharactershere"}
Both the edit and index actions in the controller are straightforward:
def index
@posts = Post.all
if params[:tag]
@posts = Post.tagged_with(params[:tag])
else
@posts = Post.all
end
end
Why is it passing the authenticity token and no other parameters?
createmethod, which would only happen on a POST. Can you clarify?