Skip to content

Instantly share code, notes, and snippets.

@jamesyu
jamesyu / gist:1116175
Created July 31, 2011 00:17
Minted broken image asset
http://s7d7.scene7.com/is/agm/Minted/MIN-ZZZ-STD-BKR-LA7?setElement.text1=%3Ccontent%3EJOIN%2520US%3C/content%3E&setAttr.text1={x%3D118.21602721599999%26y%3D16.739441884000016%26fontWeight%3Dnormal%26fontStyle%3Dnormal%26textAlign%3Dright%26fontFamily%3DBebas%20Neue%26fontSize%3D36%26s7%3AmaxFontSize%3D36%26s7%3AcolorName%3D%26s7%3AcolorValue%3D%23c39549%26s7%3Acolorspace%3Dcmyk%26s7%3AstrokeColorValue%3D%231EF7E800%26s7%3AstrokeColorspace%3Dcmyk}&setElement.text2=%3Ccontent%3EHarry%2520%26amp%3B%2520Alice%2520Wan%2520with%2520Cheng-Chen%2520%26amp%3B%2520Mei-Lin%2520Yu%3Cbr%2F%3Erequest%2520the%2520pleasure%2520of%2520your%2520company%2520to%2520celebrate%2520the%2520marriage%2520of%2520their%2520children%3Cbr%2F%3E%3Cbr%2F%3EJOANNE%2520WAN%2520%26amp%3B%2520JAMES%2520YU%3Cbr%2F%3E%3Cbr%2F%3ESunday%2C%2520September%2520Eighteenth%2C%2520Two%2520Thousand%2520and%2520Eleven%3Cbr%2F%3E3%2520O%26apos%3BClock%2520in%2520the%2520Afternoon%3Cbr%2F%3E%3Cbr%2F%3E%3Cbr%2F%3ENestldown%3Cbr%2F%3E22420%2520Old%2520Santa%
App.Views.Edit = Backbone.View.extend({
events: {
"submit form": "save"
},
initialize: function(){
this.render();
},
save: function(){
var self = this;
var msg = this.model.isNew() ? 'Successfully created!' : 'Saved!';
<% if current_user and (current_user == @user) and current_user.word_picture.nil? %>
<%= link_to image_tag('ADD_PROFILE_PIC.GIF'), :controller => 'people', :action => 'upload_picture' %>
<% else %>
NORMAL PROFILE PIC
<% end %>