I hereby claim:
- I am mopineyro on github.
- I am mopineyro (https://keybase.io/mopineyro) on keybase.
- I have a public key whose fingerprint is 6EF2 05A7 B8F3 DDBD 82B3 97AA 2F76 80AF 369B 3BE1
To claim this, I am signing this object:
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| <style type="text/css"> | |
| /*<![CDATA[*/ | |
| #outlook a{padding:0;} |
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| <style type="text/css"> | |
| /*<![CDATA[*/ | |
| #outlook a{padding:0;} |
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| actions: { | |
| checkIn: function() { | |
| var controller = this; | |
| var checkIn = this.store.createRecord('check-in'); | |
| var success = function(position) { | |
| checkIn.set('latitude', position.coords.latitude); |
| class PlayerSelectionsController < ApplicationController | |
| def create | |
| selection = PlayerSelection.new(player_selection_params.merge(user_id: current_user.id, game: Game.current_game)) | |
| if selection.save | |
| render json: selection, status: 201, serializer: PlayerSelectionSerializer | |
| else | |
| render json: {errors: selection.errors}, status: 422 | |
| end | |
| end |
I hereby claim:
To claim this, I am signing this object: