Skip to content
Browse files

Removing unused code

  • Loading branch information...
1 parent ecc7419 commit 774329984f199dddfd91275e0d4596c9fb99367e @jcasimir committed Apr 20, 2011
View
8 app/controllers/email_addresses_controller.rb
@@ -1,12 +1,4 @@
class EmailAddressesController < ApplicationController
- def index
- @email_addresses = EmailAddress.all
- end
-
- def show
- @email_address = EmailAddress.find(params[:id])
- end
-
def new
if params[:person_id]
contact = Person.find params[:person_id]
View
8 app/controllers/phone_numbers_controller.rb
@@ -1,12 +1,4 @@
class PhoneNumbersController < ApplicationController
- def index
- @phone_numbers = PhoneNumber.all
- end
-
- def show
- @phone_number = PhoneNumber.find(params[:id])
- end
-
def new
if params[:person_id]
contact = Person.find params[:person_id]
View
2 app/helpers/application_helper.rb
@@ -1,2 +0,0 @@
-module ApplicationHelper
-end
View
2 app/helpers/companies_helper.rb
@@ -1,2 +0,0 @@
-module CompaniesHelper
-end
View
2 app/helpers/email_addresses_helper.rb
@@ -1,2 +0,0 @@
-module EmailAddressesHelper
-end
View
2 app/helpers/people_helper.rb
@@ -1,2 +0,0 @@
-module PeopleHelper
-end
View
11 app/helpers/phone_numbers_helper.rb
@@ -1,11 +0,0 @@
-module PhoneNumbersHelper
-
- def print_numbers(numbers)
- render :partial => "phone_number"
- items = numbers.collect do |n|
- content_tag(:li, n.number + link_to("edit", edit_phone_number_path(n))).html_safe
- end
-
- content_tag :ul, items.join.html_safe
- end
-end
View
19 app/views/email_addresses/index.html.erb
@@ -1,19 +0,0 @@
-<% title "Email Addresses" %>
-
-<table>
- <tr>
- <th>Address</th>
- <th>Person</th>
- </tr>
- <% for email_address in @email_addresses %>
- <tr>
- <td><%= email_address.address %></td>
- <td><%= email_address.person_id %></td>
- <td><%= link_to "Show", email_address %></td>
- <td><%= link_to "Edit", edit_email_address_path(email_address) %></td>
- <td><%= link_to "Destroy", email_address, :confirm => 'Are you sure?', :method => :delete %></td>
- </tr>
- <% end %>
-</table>
-
-<p><%= link_to "New Email Address", new_email_address_path %></p>
View
16 app/views/email_addresses/show.html.erb
@@ -1,16 +0,0 @@
-<% title "Email Address" %>
-
-<p>
- <strong>Address:</strong>
- <%= @email_address.address %>
-</p>
-<p>
- <strong>Person:</strong>
- <%= @email_address.person_id %>
-</p>
-
-<p>
- <%= link_to "Edit", edit_email_address_path(@email_address) %> |
- <%= link_to "Destroy", @email_address, :confirm => 'Are you sure?', :method => :delete %> |
- <%= link_to "View All", email_addresses_path %>
-</p>
View
19 app/views/phone_numbers/index.html.erb
@@ -1,19 +0,0 @@
-<% title "Phone Numbers" %>
-
-<table>
- <tr>
- <th>Number</th>
- <th>Person</th>
- </tr>
- <% for phone_number in @phone_numbers %>
- <tr>
- <td><%= phone_number.number %></td>
- <td><%= phone_number.person_id %></td>
- <td><%= link_to "Show", phone_number %></td>
- <td><%= link_to "Edit", edit_phone_number_path(phone_number) %></td>
- <td><%= link_to "Destroy", phone_number, :confirm => 'Are you sure?', :method => :delete %></td>
- </tr>
- <% end %>
-</table>
-
-<p><%= link_to "New Phone Number", new_phone_number_path %></p>
View
16 app/views/phone_numbers/show.html.erb
@@ -1,16 +0,0 @@
-<% title "Phone Number" %>
-
-<p>
- <strong>Number:</strong>
- <%= @phone_number.number %>
-</p>
-<p>
- <strong>Person:</strong>
- <%= @phone_number.person_id %>
-</p>
-
-<p>
- <%= link_to "Edit", edit_phone_number_path(@phone_number) %> |
- <%= link_to "Destroy", @phone_number, :confirm => 'Are you sure?', :method => :delete %> |
- <%= link_to "View All", phone_numbers_path %>
-</p>
View
0 script/rails 100755 → 100644
File mode changed.

0 comments on commit 7743299

Please sign in to comment.
Something went wrong with that request. Please try again.