Skip to content

Instantly share code, notes, and snippets.

View Hates's full-sized avatar

Richard Hart Hates

View GitHub Profile
class Spree::Elist::SubscribersController < ApplicationController
respond_to :html
def create
@subscriber = Spree::Elist::Subscriber.new(params[:elist_subscriber])
@subscriber.save
respond_with @subscriber, location: request.referer
end
end
2.0.0-p353 :003 > [true, true, true].any? { |a| !a }
=> false
2.0.0-p353 :004 > [true, false, true].any? { |a| !a }
=> true
2.0.0-p353 :005 > [true, false, false].any? { |a| !a }
=> true
2.0.0-p353 :006 >
<%= link_to image_tag(root_taxon.icon.url(:normal), width: "140", alt: root_taxon.name), seo_url(root_taxon), title: root_taxon.name %>
Spree.config do |config|
config.allow_ssl_in_development_and_test = false
end
Spree::Core::Engine.routes.url_helpers.product_url(v.product, host: HOST)
GET media-development/media/_search
{
"query": {
"bool": {
"should": [
{
"match": {
"title": "Gospel"
}
},
GET media-development/segment/_search
{
"size": 50,
"query": {
"bool": {
"should": [
{
"match": {
"content": "jesus"
}
GET media-development/segment/_search
{
"size": 0,
"query": {
"bool": {
"should": [
{
"match": {
"content": "test"
}
@Hates
Hates / query.json
Last active August 29, 2015 14:04
GET media-development/media/_search
{
"query": {
"bool": {
"should": [
{
"match": {
"title": "Answers to Gospel Questions"
}
}
]
@Hates
Hates / query.json
Created July 21, 2014 14:02
GET media-development/segment/_search
{
"size": 0,
"query": {
"bool": {
"should": [
{
"match": {
"content": "willford woodruff"
}
}