Skip to content

Instantly share code, notes, and snippets.

View abbec's full-sized avatar
🦀
👔

Albert Cervin abbec

🦀
👔
View GitHub Profile

Keybase proof

I hereby claim:

  • I am abbec on github.
  • I am abbec (https://keybase.io/abbec) on keybase.
  • I have a public key whose fingerprint is 3ED2 C1A2 C7B4 4E0B 5ACA 42CA 8EC0 9E34 A35E 8D55

To claim this, I am signing this object:

@abbec
abbec / adapters.server.js
Last active January 27, 2017 09:56 — forked from luxzeitlos/adapters.server.js
snapshot belongsTo
import DS from 'ember-data';
export default DS.JSONAPIAdapter.extend({
findRecord (store, type, id, snapshot) {
return {
data: {
id: '1',
type: 'servers',
relationships: {
user: {
@abbec
abbec / gist:1023091
Created June 13, 2011 16:16
Resulting HTML
<a href="/users/2/friendships/5" data-confirm="Vill du verkligen ta bort sunan som vän?" data-method="delete" rel="nofollow">Ta bort vän</a>
@abbec
abbec / gist:1023086
Created June 13, 2011 16:14
Link that does not work
<td><p><%= link_to "Ta bort vän", user_friendship_path(:id => friendship), :confirm => "Vill du verkligen ta bort #{user_friend.username} som vän?", :method => :delete %></p></td>