-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
Though the actual error might be "can't run methods on objects in templates".
# Controller
class MyController < Base::Controller
actions :index
view "index", "#{__DIR__}/../views/ragas"
def index
@array = [1,2,3]
render "index"
end
end
# index.ecr
<%= array.length %>Error:
Error: instance variable '@array' of MyController was not initialized in all of the 'initialize' methods, rendering it nilable
Though if I just have <%= array %> in the view that compiles and renders just fine...
What's up?
Metadata
Metadata
Assignees
Labels
No labels