resources :cocore do
collection do
get :cocoreim
end
end
I have this in ccore controller:
class CoController < ApplicationController
def index
end
def cocoreim
render 'cocoreim'
end
end
In indx.html.erb of cocore view directory, I have this:
<% link_to 'CoCore', cocoreim_cocore_path %>
I get undefined local variable or method cocoreim_cocore_path when
trying to access the cocore controller page, even though cocore/cocoreim
page renders fine.
Why? I thought using collection block produces a helper which is a
concatenation of the collection get method and the parent resource
method. So what am I missing here?