public
Last active

  • Download Gist
welenn_mudancas.diff
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
diff --git a/app/assets/stylesheets/curriculum.css.scss b/app/assets/stylesheets/curriculum.css.scss
index 7528422..f7e4f35 100644
--- a/app/assets/stylesheets/curriculum.css.scss
+++ b/app/assets/stylesheets/curriculum.css.scss
@@ -2,7 +2,6 @@
*= require bootstrap
*/
-
body#resumes {
font-size: 16px;
font-family: Helvetica, Arial, sans-serif;
@@ -69,5 +68,4 @@ body#resumes {
li { line-height: 24px; margin: 14px 0; }
li span { display: block; text-align: left; }
}
-}
-
+}
\ No newline at end of file
diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb
index 39296d1..a7333e7 100644
--- a/app/controllers/profiles_controller.rb
+++ b/app/controllers/profiles_controller.rb
@@ -6,11 +6,6 @@ class ProfilesController < ApplicationController
respond_with @profiles
end
- def show
- @profile = Profile.find(params[:id])
- respond_with @profile
- end
-
def new
@profile = Profile.new
respond_with @profile
diff --git a/app/controllers/resumes_controller.rb b/app/controllers/resumes_controller.rb
index 3afd039..16a529f 100644
--- a/app/controllers/resumes_controller.rb
+++ b/app/controllers/resumes_controller.rb
@@ -2,10 +2,10 @@ class ResumesController < ApplicationController
layout "curriculum"
- def show
- profile = Profile.find(params[:id])
- @resume = ResumePresenter.new(profile)
- end
+ def show
+ profile = Profile.find(params[:id])
+ @resume = ResumePresenter.new(profile)
+ end
end
diff --git a/app/controllers/skills_controller.rb b/app/controllers/skills_controller.rb
index b4c6107..4bab3c2 100644
--- a/app/controllers/skills_controller.rb
+++ b/app/controllers/skills_controller.rb
@@ -8,11 +8,6 @@ class SkillsController < ApplicationController
respond_with @skills
end
- def show
- @skill = Skill.find(params[:id])
- respond_with @skill
- end
-
def new
@skill = Skill.new
respond_with @skill
@@ -31,7 +26,7 @@ class SkillsController < ApplicationController
def update
@skill = Skill.find(params[:id])
flash[:notice] = 'Skill was successfully updated.' if @skill.update_attributes(params[:skill])
- respond_with @skill
+ respond_with @skill, :location => skills_url
end
def destroy
diff --git a/app/views/layouts/curriculum.html.erb b/app/views/layouts/curriculum.html.erb
index 27db6d1..b14cf2a 100644
--- a/app/views/layouts/curriculum.html.erb
+++ b/app/views/layouts/curriculum.html.erb
@@ -6,10 +6,9 @@
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
</head>
-<body>
+<body id="<%= body_css_id %>">
<%= yield %>
</body>
</html>
-
diff --git a/app/views/profiles/show.html.erb b/app/views/profiles/show.html.erb
deleted file mode 100644
index 2cd5aa3..0000000
--- a/app/views/profiles/show.html.erb
+++ /dev/null
@@ -1,36 +0,0 @@
-<%= page_header "Show profile" %>
-
-<p>
- <b>First name:</b>
- <%= @profile.first_name %>
-</p>
-
-<p>
- <b>Last name:</b>
- <%= @profile.last_name %>
-</p>
-
-<p>
- <b>Email:</b>
- <%= @profile.email %>
-</p>
-
-<p>
- <b>Job title:</b>
- <%= @profile.job_title %>
-</p>
-
-<p>
- <b>Phone:</b>
- <%= @profile.phone %>
-</p>
-
-<p>
- <b>Site:</b>
- <%= @profile.site %>
-</p>
-
-
-<%= link_to 'Edit', edit_profile_path(@profile) %> |
-<%= link_to 'Back', profiles_path %>
-
diff --git a/config/routes.rb b/config/routes.rb
index b223159..31e11a9 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,14 +1,11 @@
Resume::Application.routes.draw do
+ scope "/admin" do
+ resources :skills, :except => [:show]
+ resources :employments
+ resources :profiles
+ end
+ resources :resumes
- scope "/admin" do
- resources :skills, :except => [:show]
- resources :employments
- resources :profiles
- end
-
- resources :resumes
-
- root :to => "resumes#show"
- end
-
+ root :to => "profiles#index"
+end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.