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

Add HighChart#as_json method #167

Merged
merged 1 commit into from Sep 15, 2015
Merged

Conversation

sukima
Copy link
Contributor

@sukima sukima commented Jun 20, 2014

When using a HighChart object for returning JSON data in a rails controller it
is often appropiot to pass an object into the render method as a hash to be
converted into JSON.

render json: @chart

The render method will process the hash offered by the json: using it's
as_json method if it exists.

http://stackoverflow.com/a/2574900/227176 explains this better.

When using a HighChart object for returning JSON data in a rails
controller it is often appropiot to pass an object into the render
method as a hash to be converted into JSON.

    render json: @Chart

The render method will process the hash offered by the json: using it's
as_json method if it exists.

http://stackoverflow.com/a/2574900/227176 explains this better.
xiaods added a commit that referenced this pull request Sep 15, 2015
@xiaods xiaods merged commit a22b6e0 into michelson:master Sep 15, 2015
@xiaods
Copy link
Collaborator

xiaods commented Sep 15, 2015

thanks @sukima

@sukima sukima deleted the feature/add-to-json branch September 16, 2015 02:34
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

Successfully merging this pull request may close these issues.

None yet

2 participants