I hereby claim:
- I am andyh on github.
- I am elaptics (https://keybase.io/elaptics) on keybase.
- I have a public key whose fingerprint is 5B67 864A F0E6 5556 6E8E 1936 E129 FA8C 0508 8F77
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
jQuery -> | |
name = $("#user-welcome").data("name") | |
if name | |
alert name |
def set_category | |
# current_user dealt with in before filter | |
@category = current_user.categories.find(params[:id]) | |
rescue ActiveRecord::RecordNotFound | |
flash[:error] = "The category you're looking for could not be found." | |
redirect_to root_path | |
end |
describe SMS do | |
let(:mock_clockwork_api){ double{"ClockworkApi"} } | |
subject { SMS.new(:mock_clockwork_api) } | |
context ".build" do | |
it "should call messages.build" do | |
allow(mock_clockwork_api).to receive_message_chain("messages.build") { "method response" } | |
expect(mock_clockwork_api.messages.build).to eq("method response") | |
end | |
end | |
end |
No handler found for [#<ActionDispatch::Http::UploadedFile:0x007f8b60310158 @tempfile=#<Tempfile:/var/folders/h_/n3tkl5j51zq8_0fx987g4pqr0000gn/T/RackMultipart20140630-14626-suf62t>, @original_filename="door.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"images[]\"; filename=\"door.jpg\"\r\nContent-Type: image/jpeg\r\n">] |
<%= form_for @contact, :remote => true, :url => contacts_path, :html => { :novalidate => '' } do |f| %> | |
<% if SpreeContactUs.require_name %> | |
<p> | |
<%= f.label :name, :class=>'label-field-control' %> | |
<%= f.text_field :name, class: 'form-control' %> | |
</p> | |
<% end %> | |
<p> | |
<%= f.label :email, :class=>'label-field-control' %> |
def self.create_from_parent(parent_type, parent_id, comment_params, current_account) | |
raise ActiveRecord::RecordNotFound unless POLYMORPHIC_ON.include?(parent_type) | |
parent_type.constantize.find(parent_id).comments.create(comment_params.merge(account: current_account)) | |
end |