[Rails] Re: undefined method `with_indifferent_access' for "":String
Colin Law wrote in post #1072606:
> On 16 August 2012 19:20, arturo drlt <lists@ruby-forum.com> wrote:
>
> What is current_contribuyente?
>
> Colin
current_contribuyente is a method that works similar to current_user
work like these:
def current_contribuyente
current_user.contribuyente
end
it just a custom current_user that retrieves a model (contribuyente) for
the current_user
contribuente has_many :comps
--
Posted via http://www.ruby-forum.com/.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home