This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
locate foo | xargs rm -rf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.foo.controllers | |
class UserController { | |
def show(final String username) { | |
render template: 'greetings', model: [username:username] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<g:render template="/templates/main"/> | |
<title>Copy to Clipboard Using SWF!</title> | |
</head> | |
<body> | |
<r:script> | |
$(function() { | |
//place the swf in /web-app/ (i.e.: /web-app/swf/ZeroClipboard.swf) | |
//and use the r.resource tag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="form-group> | |
<%= f.label :ingredients %> | |
<%= f.collection_check_boxes :ingredient_ids, Ingredient.order(:name), :id, :name do |b| | |
b.label(class: "checkbox") { b.check_box + b.text } | |
end %> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Product.where.not(id:@order.products).order(:name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"directory": "vendor/assets/bower" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- the only way that worked for me =\ --> | |
<%= form_for @foo, url:{action:'create'} do |f| %> | |
... | |
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/spec/factories/products.rb | |
include ActionDispatch::TestProcess | |
FactoryGirl.define do | |
factory :product do | |
photo {fixture_file_upload 'spec/files/product.jpg', 'image/jpg'} | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Address < ActiveRecord::Base | |
belongs_to :user | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.App or= {} | |
class App.Foo | |
constructor:-> | |
@$container = $('.container') | |
@bind() | |
bind:-> | |
@$container.on 'click', '.btn.update', @update |
OlderNewer