This file contains hidden or 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
<html> | |
<head> | |
<title>work!</title> | |
</head> | |
<body> | |
<h1>Congratulations! </h1> | |
<p> This has worked.</p> | |
<script type="text/javascript"> |
This file contains hidden or 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
<div class="category type-here"> | |
<img src="categoryimage.jpg" /> | |
<div> | |
<h3>Salads</h3> | |
<p>Served with roll, butter, & choice of dressing.</p> | |
<ul class="products"> | |
<li> | |
<h3>Chicken Cobb $6.50</h3> | |
<p>Grilled Chicken, Bacon, Mozzarella, Lettuce, Tomatoes</p> | |
</li> |
This file contains hidden or 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
; Basic Drush Make file | |
; | |
; Usage: | |
; drush make --prepare-install drupal7.make | |
; Core version | |
; ------------ | |
; Each makefile should begin by declaring the core version of Drupal that all | |
; projects should be compatible with. |
This file contains hidden or 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
; Basic Drush Make file | |
; | |
; Usage: | |
; drush make --prepare-install drupal7.make | |
; Core version | |
; ------------ | |
; Each makefile should begin by declaring the core version of Drupal that all | |
; projects should be compatible with. |
This file contains hidden or 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
<% @towns.each do |town| %> | |
<div> | |
<%= town.town %> | |
<% @postcards.each do |postcard| %> | |
<%= postcard.eat %> | |
<% end %> |
This file contains hidden or 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
<% @towns.each do |town| %> | |
<div> | |
<%= town.town %> - | |
<%= town.postcards.last.eat %> | |
</div> | |
<% end %> |
This file contains hidden or 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 FrontendController < ApplicationController | |
layout "frontend" | |
def home | |
@services = Service.all | |
end | |
end |
This file contains hidden or 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
@states = State.find(params[:id]) | |
@towns = @states.towns.paginate(:page => params[:page], :per_page => 9).order("town") | |
@towns.each do |t| | |
t.postcards.last | |
t.postcards.count | |
end | |
end |
This file contains hidden or 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 of Towns.. In Rails: <%= @towns = Town.all.to_json %> | |
var TOWNS = [ | |
{ town: "Abbeville city", id: 1 }, | |
{ town: "Adamsville city", id: 2 }, | |
{ town: "Addison Town", id: 3 } | |
]; | |
$(document).ready(function() { | |
$('#postcard_city').bind('change', updateStateValue); |
This file contains hidden or 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
INSERT INTO `facebooks` (`id`, `client_id`, `provider`, `uid`, `oauth_token`, `oauth_expires_at`, `created_at`, `updated_at`) | |
VALUES | |
(1, 1, 'facebook', '100004016931051', 'AAAFhSx2lxZCUBAFraQOqpXSWOEKopMChGFpl9PZBTLrbXGDI7V0CDqYtLLlk2cXH4Px90VEGHGWAi3M9LSNmCoZCIkUXgZB6Jxlh7MUTGRGcb8FGBK5A', '2012-10-10 20:00:00', '2012-10-09 21:25:46', '2012-10-10 18:20:37'); |
OlderNewer