person has_many :jokes joke belongs_to :person
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
require 'faker' | |
require 'factory_girl_rails' | |
FactoryGirl.define do | |
factory :profile do |f| | |
f.name { Faker::Name.name } | |
f.user_id "1" | |
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
<%= form_for [@person, @joke] do |f| %> | |
<% if @joke.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@joke.errors.count, "error") %> prohibited this joke from being saved:</h2> | |
<ul> | |
<% @joke.errors.full_messages.each do |message| %> | |
<li><%= message %></li> | |
<% end %> | |
</ul> |
You know what to do.
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
-----BEGIN PGP MESSAGE----- | |
Version: GnuPG/MacGPG2 v2.0.22 (Darwin) | |
Comment: GPGTools - https://gpgtools.org | |
hQIMA04Va+WS3WgHARAAzSSTjGy377lokucEI2OYN7uHad5czpmIWW0z4fK9Ns0i | |
WuxYTUE9MwpXJ1/GlrdM5N+WTD4OQNyh3u7PX7qkCgisQkq/khRHZfIaSkkq6+Yu | |
HY0HrZ9FYkS8xehg9/ZMw94yxhMVoLES+NY8vWJ/1sBM0KaoG93WKNZ92opT+0sX | |
0yZdkCKDIqQxLZWjxrdAu3mDuMiVoCc43d/z7baZTUBtpKMEQ/i0d3WHzowdOtee | |
cuzKEBht2O2p0/zJ96RwrwxfR1voySWoo81asHuQn9A0jTnAmZ+dtv1k3KPwUndw | |
GfZUNNGbxv4136tP5Qxvj0O+hO2ZvI3skqmd9TBxDoq/wjxnNRozWfcBuYTyMmRT |
I hereby claim:
- I am maclover7 on github.
- I am moss (https://keybase.io/moss) on keybase.
- I have a public key whose fingerprint is 4B63 126A F84F AF85 3D96 3ADA 2CEB 46D0 4F80 1DF2
To claim this, I am signing this object:
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
<?php | |
include('Services/Twilio.php'); | |
function guide(){ | |
$response = new Services_Twilio_Twiml(); | |
$response->sms("Blah."); | |
echo $response; | |
} | |
NewerOlder