Closed blangslet closed 11 years ago
Hi Bryan,
I don't have an example app to show you but it should be relatively straight-forward. Just add the following line to the Gemfile
in your Rails app:
gem 'mlb'
Then, run the command: bundle install
.
At that point, you should be able to access the MLB
constant anywhere in your app. You'll probably want to use it in your Rails controllers, storing the result in an instance variable that is available in your views.
I hope that helps. Let me know if you have any more specific questions.
Erik
Erik,
Thanks for the response. I was originally looking at using ESPN's new API, but it only allows stats use for premium partners. Your gem seems like a good free data source to bring into Rails and serialize for ember through active_model_serializers. I love looking at all-time great stats and comparing those to current players, so I want to work on a cool open-source app around that theme. I'll let you know about any progress. Cheers!
Bryan
This is incredibly awesome. Do you know of any example open source Rails apps that use this gem? I've been getting into ember.js lately and want to build an mlb-themed ember + rails demo app that uses historical baseball stats. I'm more of a front-end guy, so any guidance would be much appreciated.