I think I found it on line 170: def initialize(view_paths, details = {}, prefixes = []) @details, @details_key = {}, nil @skip_default_locale = false @cache = true @prefixes = prefixes @rendered_format = nil
self.view_paths = view_paths initialize_details(details) end It's after 3 module definitions of the same class. It seems almost intentionally designed to be confusing. On Sep 9, 3:25 pm, John Merlino <stoici...@aol.com> wrote: > The title of this message is wrong. LookupContext must have a > constructor: > > ActionView::LookupContext.new(nil) > => #<ActionView::LookupContext:0x007f8e84755d18 @details_key=nil, > @details={:handlers=>[:erb, :builder, :coffee], :formats=>[:html, :text, :js, > :css, :ics, :csv, :xml, :rss, :atom, :yaml, :multipart_form, > :url_encoded_form, :json], :locale=>[:en, :en]}, > @skip_default_locale=false, @frozen_formats=false, @cache=true, > @prefixes=[], @view_paths=[]> > > My problem is I can't find it: > > https://github.com/rails/rails/blob/master/actionpack/lib/action_view... > > There's other initialize methods for other classes, but not for > LookupContext. Where is it? -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.