Skip to content

Commit

Permalink
Renamed posts to resume as there is a direct mapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shanil Puri committed Sep 23, 2014
1 parent 7b0e5a3 commit c196fcf
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class PostController < ApplicationController
class ResumeController < ApplicationController

include ApplicationHelper
skip_before_filter :authenticate_user!, :only => [:index, :show]
Expand All @@ -15,7 +15,7 @@ def create
post = Post.new
@errors = []
ActiveRecord::Base.transaction do
update_new_post post, params["post"]
update_new_post post, params["resume"]
end
redirect_to create_redirector_path if @errors.blank?
end
Expand All @@ -39,7 +39,7 @@ def publish_draft

def show
post = Post.find(params["id"].to_i)
render :partial => "show_post", :locals => {:post => post}
render :partial => "show_post", :locals => {:resume => post}
end

private
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% can_publish = current_user.can_publish? %>
<div class="create_header">
<h1>Drafts</h1>
<%= link_to "Create new post", new_post_path %>
<%= link_to "Create new resume", new_post_path %>
</div>
<div class="data_container">
<table id = "drafts_posts_table" class="display data_table">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="create_header">
<h1>All Published Posts</h1>
<%= link_to "Create new post", new_post_path %>
<%= link_to "Create new resume", new_post_path %>
</div>
<div class="data_container">
<table id = "posts_table" class="display data_table">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= form_for @post, :url => post_index_path do |f| %>
<%= form_for @post, :url => "#" do |f| %>
<div class="table_body">
<div class="table_list_item">
<%= f.label :title, :class => "table_column_item" %> <%= f.text_field :title, :class => "table_column_item", :size => 30, :placeholder => "*required" %>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="create_header">
<h1>Published Articles</h1>
<%= link_to "Create new post", new_post_path %>
<%= link_to "Create new resume", new_post_path %>
</div>
<div class="data_container">
<table id = "posts_table" class="display data_table">
Expand Down

0 comments on commit c196fcf

Please sign in to comment.