ankane / blazer

Business intelligence made simple
MIT License
4.56k stars 474 forks source link

ActionView::Template::Error (undefined method `[]' for nil:NilClass): #405

Closed Emerson89 closed 2 years ago

Emerson89 commented 2 years ago

I have this error at the time of trying to run a "new query"

ActionView::Template::Error (undefined method `[]' for nil:NilClass): 19: Schema 20:

21: 22: <%= f.select :data_source, Blazer.data_sources.values.select { |ds| q = @query.dup; q.data_source = ds.id; q.editable?(blazer_user) }.map { |ds| [ds.name, ds.id] }, {}, class: ("hide" if Blazer.data_sources.size <= 1), style: "width: 140px;" %> 23:
24: 25:

ankane commented 2 years ago

Hey @Emerson89, can you paste the full backtrace?

Emerson89 commented 2 years ago

Resolved