RailsCasts Pro episodes are now free!

Learn more or hide this

eriksays's Profile

GitHub User: eriksays

Comments by

Avatar

I got the following error: /blog/app/views/layouts/application.html.erb:16: syntax error, unexpected ':', expecting ')'
...royuser_session_path, method: :delete);@output_buffer.safe...

basically -- the app doesn't like the following line:
<%= link_to "Logout", destroy_user_session_path, method: :delete%>

specifically, does not like "method: :delete" -- remove those, it loads but then errors because the controller isn't found.