RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: BigBoy1337
nvm I fixed it by adding resources:messages to my routes.rb file
I keep getting an error saying
undefined method `new_message_path'
This is in app/views/messages/_messages.html.erb
<%= link_to "Reply", new_message_path(:parent_id => message) %>
<% if current_user?(message.user) %>
<%= link_to "delete", message, method: :delete,
confirm: "You sure?",
title: message.content %>
<% end %>
Any idea where to define new_message_path? I tried adding
but it didnt work