Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: robertSahm/foodtruck
base: 8e3bc5f3fc
...
head fork: robertSahm/foodtruck
compare: 44a994f7fa
  • 2 commits
  • 14 files changed
  • 0 commit comments
  • 2 contributors
Commits on Jun 14, 2012
@joncode joncode renamed to 'Coast 2 Coast' plus put name constant in initializer and …
…remove from controllers
37ee966
@robertSahm Merge pull request #1 from joncode/master
PAGE_NAME precise syntax plus change to 'Coast 2 Coast'
44a994f
View
2  Rakefile
@@ -4,4 +4,4 @@
require File.expand_path('../config/application', __FILE__)
-Drivein::Application.load_tasks
+Coast2Coast::Application.load_tasks
View
10 app/controllers/home_controller.rb
@@ -2,47 +2,39 @@ class HomeController < ApplicationController
def index
@users = User.order('id DESC')
- @page_name = PAGE_NAME
end
def help
- @page_name = PAGE_NAME
end
def contact
- @page_name = PAGE_NAME
end
def about
- @page_name = PAGE_NAME
end
def channel
@micropost = current_user.microposts.build if signed_in?
@feed_items = Micropost.all
- @page_name = PAGE_NAME
end
def learn
- @page_name = PAGE_NAME
end
def calendar
- @page_name = PAGE_NAME
+
end
def gps
- @page_name = PAGE_NAME
end
def menu
- @page_name = PAGE_NAME
end
end
View
8 app/controllers/users_controller.rb
@@ -4,7 +4,7 @@ class UsersController < ApplicationController
# before_filter :admin_user, only: :destroy
def index
- @page_name = PAGE_NAME
+
@users = User.all
@user = current_user
@@ -15,7 +15,7 @@ def index
end
def show
- @page_name = PAGE_NAME
+
@user = User.find(params[:id])
@microposts = @user.microposts.all(limit:15)
@feed_items = @microposts
@@ -28,7 +28,7 @@ def show
end
def new
- @page_name = PAGE_NAME
+
@user = User.new
respond_to do |format|
@@ -38,7 +38,7 @@ def new
end
def edit
- @page_name = PAGE_NAME
+
@user = User.find(params[:id])
end
View
2  app/helpers/sessions_helper.rb
@@ -1,6 +1,4 @@
module SessionsHelper
- PAGE_NAME = "Coast 2 Coast"
- @page_name = PAGE_NAME
def sign_in(user)
cookies.permanent[:remember_token] = user.remember_token
View
2  app/views/layouts/application.html.erb
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <title><%= @page_name %></title>
+ <title><%= PAGE_NAME %></title>
<%= render 'layouts/shim' %>
<%= stylesheet_link_tag "application", :media => "all" %>
View
2  config.ru
@@ -1,4 +1,4 @@
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
-run Drivein::Application
+run Coast2Coast::Application
View
3  config/application.rb
@@ -9,8 +9,9 @@
# Bundler.require(:default, :assets, Rails.env)
end
-module Drivein
+module Coast2Coast
class Application < Rails::Application
+
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
View
2  config/environment.rb
@@ -2,4 +2,4 @@
require File.expand_path('../application', __FILE__)
# Initialize the rails application
-Drivein::Application.initialize!
+Coast2Coast::Application.initialize!
View
2  config/environments/development.rb
@@ -1,4 +1,4 @@
-Drivein::Application.configure do
+Coast2Coast::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# In the development environment your application's code is reloaded on
View
2  config/environments/production.rb
@@ -1,4 +1,4 @@
-Drivein::Application.configure do
+Coast2Coast::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# Code is not reloaded between requests
View
2  config/environments/test.rb
@@ -1,4 +1,4 @@
-Drivein::Application.configure do
+Coast2Coast::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# The test environment is used exclusively to run your application's
View
4 config/initializers/secret_token.rb
@@ -4,4 +4,6 @@
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
-Drivein::Application.config.secret_token = '80cb854c626de01bc9fce3ffdbb7c83961ca54311520874da313b8bb98eeeb3e343843187d0b743604ff43963bb43d0f62f4e13265d3776a9cae2912eb1a2687'
+Coast2Coast::Application.config.secret_token = '80cb854c626de01bc9fce3ffdbb7c83961ca54311520874da313b8bb98eeeb3e343843187d0b743604ff43963bb43d0f62f4e13265d3776a9cae2912eb1a2687'
+
+PAGE_NAME = "Coast 2 Coast"
View
4 config/initializers/session_store.rb
@@ -1,8 +1,8 @@
# Be sure to restart your server when you modify this file.
-Drivein::Application.config.session_store :cookie_store, key: '_drivein_session'
+Coast2Coast::Application.config.session_store :cookie_store, key: '_drivein_session'
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rails generate session_migration")
-# Drivein::Application.config.session_store :active_record_store
+# Coast2Coast::Application.config.session_store :active_record_store
View
2  config/routes.rb
@@ -1,4 +1,4 @@
-Drivein::Application.routes.draw do
+Coast2Coast::Application.routes.draw do
resources :relationships
resources :sessions, only: [:new, :create, :destroy]

No commit comments for this range

Something went wrong with that request. Please try again.