全栈营rails101训练190325SyntaxError语法错误

SyntaxError

/Users/liuyuwei/rails-projects/rails102/config/routes.rb:7: syntax error, unexpected ':', expecting keyword_end resources : posts ^

Extracted source (around line #7):

56789  resources :groups do

    resources : posts

  end

修改后应该为把 resources : posts中间冒号和posts空格删除,改为resources :posts

你可能感兴趣的:(全栈营rails101训练190325SyntaxError语法错误)