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

fix flash_tag() with multiple attributes. #1213

Merged
merged 1 commit into from Apr 1, 2013

Conversation

Projects
None yet
2 participants
@tmtm
Contributor

tmtm commented Apr 1, 2013

flash_tag() with multiple attributes raises NoMethodError when some attributes are not given.

When flash is set in controller:

flash[:error] = 'error message'
flash[:success] = 'success message'

and use flash_tag() in view:

flash_tag(:error, :warning, :success)

Then raise error:

NoMethodError: undefined method `<<' for nil:NilClass
@ujifgc

This comment has been minimized.

Show comment
Hide comment
@ujifgc

ujifgc Apr 1, 2013

Member

Excellent. Thank you!

Member

ujifgc commented Apr 1, 2013

Excellent. Thank you!

ujifgc added a commit that referenced this pull request Apr 1, 2013

Merge pull request #1213 from tmtm/fix-flash_tag-with-multiple-attrib…
…utes

fix flash_tag() with multiple attributes.

@ujifgc ujifgc merged commit cc4b048 into padrino:master Apr 1, 2013

1 check passed

default The Travis build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment