RobinBrouwer/gritter

undefined method `gsub' for 3000:Fixnum

jedrekdomanski opened this issue · 0 comments

I have removed :time => 3000 from controller flash messages and now I have this but for some reason I am getting below error:

sessions_controller.rb

class SessionsController < ApplicationController
  
  def create
    ...
    redirect_to profile_path, :gflash => { :success => true, :locals => { :name => current_user.name } }
    ...
  end

  def destroy
   ...
    redirect_to root_url, :gflash => { :success => true }
  end
...

end

index.html.erb

<%= gflash %>

NoMethodError in Home#profile
undefined method `gsub' for 3000:Fixnum

I have restarted the server many times.
Everything worked fine before adding :time and removing it.