Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `gsub' for 3000:Fixnum #66

Open
jedrekdomanski opened this issue Oct 25, 2017 · 0 comments
Open

undefined method `gsub' for 3000:Fixnum #66

jedrekdomanski opened this issue Oct 25, 2017 · 0 comments

Comments

@jedrekdomanski
Copy link

jedrekdomanski commented Oct 25, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant