I’m using namespace with Devise and i can’t get the object ptofile in
view
to render.
class Freelances::ProfilesController < ApplicationController
before_filter :authenticate_freelance!
def show
respond_with = current_freelance.profile
end
end
show.html.erb
<%=render @profile %>
<%=link_to ‘edit’, edit_freelances_profiles_path(@profile)%>
<%=link_to ‘remove’, :confirm => ‘Voc tem certeza?’, :method => :delete
%>
error
‘nil’ is not an ActiveModel-compatible object that returns a valid
partial path.
Extracted source (around line #1):
1: <%=render @profile %>
2: <%=link_to ‘edit’, edit_freelances_profiles_path(@profile)%>
3: <%=link_to ‘remove’, :confirm => ‘Voc tem certeza?’, :method =>
:delete %>
More info : GitHub - lucaslimasouza/AutoNoMapa
Thanks