On 14 August 2012 14:00, Lucas Lima de Souza
<lucaslima4p-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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 %>
That means @profile is nil.
Colin
> 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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> 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.
>
>
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.