John Sanderbeck


480 Experience
3 Lessons Completed
0 Questions Solved


Posted in Implementing Highcharts in RoR

You have been a great help Jacob...

Probably where I am struggling is how to structure the code in RoR...

For example, I assume I draw the chart in the main HTML page, then when they filter the data I use a javascript callback to change the data?

The way I had it before was redrawing everything and I know there has to be a more efficient way to do it...


Posted in Implementing Highcharts in RoR

That helps... I want to replace a series vs adding a point, so I assume I would have to do a chart.redraw(); ?

Posted in Implementing Highcharts in RoR

I've had them working this way before, however the part I struggle with is dynamically updating the data without redrawing the entire page. I use Filterrific to filter the data.

I guess I am looking for the most efficient way to do it in RoR.


Posted in Implementing Highcharts in RoR

Looking for the best way to implement Highcharts in RoR. I have been spoiled by ChartKick however one of the features I need in HighCharts is the Drilldowns and the maker of ChartKick said "it's a neat concept but outside the scope of ChartKick".

Has anyone worked with HighCharts and can point me in the right direction?

Maybe Chris can do an Episode or 3 on the subject... :-)

John Sanderbeck

Posted in Struggling with an association test

I have a project that has a User, a Building, and a Role
There is a building_roles table that is user_id, building_id, and role_id
Then I have a has_many :users through building_roles
There is a validation on the user that verifies it must have at least one role in a building

Can't for the life of me get the association to work in a factory for testing

Anyone done this before?

I have an app designed that I have classrooms and I want to "enroll" students in the class en mass. For example I want to be able to search by name and either add by an enroll or add button or a checkbox...

Any suggestions on examples or can anyone suggest the best way to do this?


logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2021 GoRails, LLC. All rights reserved.