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 : https://github.com/lucaslimasouza/AutoNoMapa

Thanks



-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/z8EBDNVuSjUJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to