#なんだかんだ
##えーと1 どういうこういう そういうどういう
##えーと2 どういうこういう そういうどういう
#なんだかんだ
##えーと1 どういうこういう そういうどういう
##えーと2 どういうこういう そういうどういう
| {% if include.content %} | |
| <meta property="{{ include.property }}" content="{{ include.content }}" /> | |
| {% endif %} |
| # Usage: link_to …, prompt: { message: 'Some message', default: 'default value', param: 'name of parameter' } | |
| # The prompt will ask for "message" and use "default" as the default value. | |
| # Unless user selects cancel, "param"=<new value> will be sent to the given path. | |
| # Optionally, you can just use `prompt: "message"`. | |
| $.rails.prompt = (message, defaultValue) -> | |
| window.prompt message, defaultValue | |
| $.rails.handlePrompt = (element) -> | |
| config = element.data 'prompt' |
| # encoding: utf-8 | |
| Rails.application.config.active_record.whitelist_attributes = false | |
| ActiveRecord::Base.class_eval do | |
| class << self | |
| def create_or_update! attrs={} | |
| instance = first_or_initialize(attrs, :without_protection => true) | |
| instance.save! | |
| end |
| # encoding: utf-8 | |
| # This file should contain all the record creation needed to seed the database with its default values. | |
| # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). | |
| # | |
| # Examples: | |
| # | |
| # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) | |
| # Mayor.create(name: 'Emanuel', city: cities.first) |
| require 'mail' | |
| Mail.defaults do | |
| options = { :address => "smtp.gmail.com", | |
| :port => 587, | |
| :user_name => 'kosaki.motohiro', | |
| :password => 'パスワード', | |
| :authentication => 'plain', | |
| :enable_starttls_auto => true } |