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
function sendToEvernote() { | |
var evernote_email = "xxxxxxxxx@m.evernote.com"; | |
var note_title = "お問い合わせ @ギルド問い合わせ" //「AAAAAA @BBBBBB」"@BBBBBB"で指定したノートに"AAAAA"というタイトルで追加されます | |
var range = SpreadsheetApp.getActiveRange(); //変更されたセルを取得 | |
var col = range.getColumnIndex(); //変更のあったセルの列を取得 | |
var row = range.getRowIndex(); //変更のあったセルの行を取得 | |
if(col == 7){ | |
reply = range.getValue(); //変更されたステータスの値 | |
var sheet = SpreadsheetApp.getActiveSheet(); |
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
- var height = 300 | |
- if (i % 3 == 1) | |
- height = 400 | |
- if (i % 3 == 2) | |
- height = 500 | |
- height = 300 |
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
Sample::Application.routes.draw do | |
resources :items | |
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
Prefix Verb URI Pattern Controller#Action | |
items GET /items(.:format) items#index | |
POST /items(.:format) items#create | |
new_item GET /items/new(.:format) items#new | |
edit_item GET /items/:id/edit(.:format) items#edit | |
item GET /items/:id(.:format) items#show | |
PATCH /items/:id(.:format) items#update | |
PUT /items/:id(.:format) items#update | |
DELETE /items/:id(.:format) items#destroy |
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 ItemsController < ApplicationController | |
before_action :set_item, only: [:show, :edit, :update, :destroy] | |
def index | |
@items = Item.all | |
end | |
def show | |
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 CreateItems < ActiveRecord::Migration | |
def change | |
create_table :items do |t| | |
t.string :name | |
t.integer :price | |
t.text :description | |
t.timestamps | |
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
<h1>Listing items</h1> | |
<table> | |
<thead> | |
<tr> | |
<th>Name</th> | |
<th>Price</th> | |
<th>Description</th> | |
<th></th> | |
<th></th> |
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
json.array!(@items) do |item| | |
json.extract! item, :name, :price, :description | |
json.url item_url(item, format: :json) | |
end |
OlderNewer