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

Setting time value #63

Open
Harxy opened this issue Jul 25, 2016 · 1 comment
Open

Setting time value #63

Harxy opened this issue Jul 25, 2016 · 1 comment

Comments

@Harxy
Copy link

Harxy commented Jul 25, 2016

Hey, Sorry to open two issues in one day, particularly as it is most likely user error, but there is something quite odd going on.

I'm using gflash and this works fine:

    if @note.save
      gflash :success => "success"
      redirect_to '/notes'
    end

The only problem with that is the time, it's about 5 seconds which is too long.

This, however, does not work:

gflash :success => { :value => "success", :time => 2000 }

just nothing happens whatsoever. Whenever I try to pass values in to the gflash to override the defaults, it just stops displaying the gritter, without an error message, and I have no idea how to debug it either.

Any help would be greatly appreciated :)

@jedrekdomanski
Copy link

jedrekdomanski commented Oct 25, 2017

After removing :time I get an error 'undefined method `gsub' for 3000:Fixnum'
https://github.com/RobinBrouwer/gritter/issues/66

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

2 participants