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

Can't load translation when if I use gflash and redirect_to #50

Closed
vmamaev opened this issue Oct 15, 2014 · 2 comments
Closed

Can't load translation when if I use gflash and redirect_to #50

vmamaev opened this issue Oct 15, 2014 · 2 comments

Comments

@vmamaev
Copy link

vmamaev commented Oct 15, 2014

I have following method:

def create
    @office  = current_user.offices.new(office_params)

    if @office.save
      gflash :success
      redirect_to offices_path
    else
      gflash :success
      render action: "new"
    end
end

When condition is true Title can't load from translation file.
When condition is false Title successfuly load from translation file.

@vmamaev
Copy link
Author

vmamaev commented Oct 15, 2014

pull-request #51

@RobinBrouwer
Copy link
Owner

Fixed it in v1.2.0.

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