You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NoMethodError: undefinedmethod`[]' for nil:NilClass /Users/lessless/.gem/ruby/2.1.4/bundler/gems/controller-534fc0efe543/lib/lotus/action/flash.rb:103:in `data' /Users/lessless/.gem/ruby/2.1.4/bundler/gems/controller-534fc0efe543/lib/lotus/action/flash.rb:50:in `[]'/Users/lessless/tmp/lotusession/app/templates/application.html.erb:7:in`block (2 levels) in singleton class' /Users/lessless/tmp/lotusession/app/templates/application.html.erb:6:in `each' /Users/lessless/tmp/lotusession/app/templates/application.html.erb:6:in `block in singleton class'/Users/lessless/tmp/lotusession/app/templates/application.html.erb:-6:in`instance_eval' /Users/lessless/tmp/lotusession/app/templates/application.html.erb:-6:in `singletonclass' /Users/lessless/tmp/lotusession/app/templates/application.html.erb:-8:in `__tilt_70348439917320'
require"lotus"moduleAppclassApplication < Lotus::Applicationconfiguredolayout:applicationroutesdoget'/',to: 'home#index'get'/login',to: 'login#index'endsessions:cookie,secret: 'zzzzzzzzzzzzzzzzzzzzzz'controller.preparedoexpose:flashendview.rootDir.pwdendload!endmoduleControllers::HomeincludeControllerclassIndexincludeActiondefcall(params)# uncomment this line and everything will work# flash[:error] = "OMG"endendendmoduleControllers::LoginincludeControllerclassIndexincludeActiondefcall(params)putssession.inspectendendendmoduleApp::Views::HomeclassIndexincludeApp::ViewendendmoduleApp::Views::LoginclassIndexincludeApp::ViewendendclassApp::Views::ApplicationLayoutincludeLotus::LayoutendendrunApp::Application.new
Hello! There is a problem with empty flash
here is the template
The text was updated successfully, but these errors were encountered: