This file contains hidden or 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
= form_for(:artwork_tag, :url => "/artworks/#{@artwork.id}/tags/create", :html => { :method => :create, :class => 'form-horizontal' }, :remote => true) do |f| | |
.control-group | |
= f.hidden_field :artwork_id, :value => @artwork.id | |
= f.hidden_field :user_id, :value => current_user.id | |
= f.text_field :tag_name, :class => "input-medium" | |
= f.submit "Add Tag", :class => "btn btn-small btn-primary" |
This file contains hidden or 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/migrations/add_email_at_utc_hour_to_users_spec.rb | |
require 'spec_helper' | |
require Dir[Rails.root.join('db/migrate/*_add_email_at_utc_hour_to_users.rb')].first | |
describe AddEmailAtUtcHourToUsers do | |
let(:migration) { AddEmailAtUtcHourToUsers.new } | |
describe '#up' do | |
before { migration.up; User.reset_column_information } |
This file contains hidden or 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
(use http-client) | |
(use html-parser) | |
(use sxpath) | |
(define yuno "http://memegenerator.net/Y-U-No/caption/166088") | |
(define doc (with-input-from-request yuno | |
'((generatorID . "2") | |
(imageID . "166088") | |
(watermarkCode . "") |