Permalink
Browse files

Fixing Resume Upload Support

  • Loading branch information...
1 parent 9f3b8a7 commit 20aef4d2ba2e2d5e91cbca63ecb4ece6b3b07867 @jcnetdev jcnetdev committed Jul 12, 2008
Showing with 10 additions and 9 deletions.
  1. +2 −1 .gitignore
  2. +5 −3 README
  3. +1 −1 app/controllers/jobs_controller.rb
  4. +2 −4 app/views/jobs/parts/_apply_form.html.haml
View
3 .gitignore
@@ -1,4 +1,5 @@
.DS_Store
tmp/**/*
log/*.log
-code_update.tar.gz
+code_update.tar.gz
+public/resumes
View
8 README
@@ -6,7 +6,7 @@ www.jobberrails.com
== Current Version
-v0.2
+v0.4
Working:
- Job Posting
@@ -15,11 +15,13 @@ Working:
- Feeds
- Apply Now
- Ideal Job Form
-
-Coming Soon:
- Admin Tools
- Email Verification
+TODO:
+- Bug fixes
+
+
v1.0 will include all the functionality that currently exists in JobberBase
v2.0 will include additional functionality not currently in JobberBase
View
2 app/controllers/jobs_controller.rb
@@ -29,7 +29,7 @@ def apply
@job_applicant = @job.job_applicants.build(params[:job_applicant])
if @job_applicant.save
session[:applied_id] = @job.id
- Notifier.deliver_somebody_applied(@job.poster_email,@job_applicant.name, @job_applicant.message, @job_applicant.filename, @job_applicant.id)
+ Notifier.deliver_somebody_applied(@job.poster_email,@job_applicant.name, @job_applicant.message, @job_applicant.resume.url, @job_applicant.id)
redirect_to job_url(@job)
else
render :action => "show"
View
6 app/views/jobs/parts/_apply_form.html.haml
@@ -31,13 +31,11 @@
%td{:valign => "top"}
%label Upload Resume/CV
%td
- = f.file_field :uploaded_data
+ = f.file_field :resume
.suggestion
Max. 3 MB. Recommended formats: PDF, RTF, DOC, ODT.
- - if job_applicant.errors.on(:filename)
+ - if job_applicant.errors.on(:resume)
.error-message Please attach a resume to apply.
- - elsif job_applicant.errors.on(:content_type)
- .error-message Please upload a valid resume file type (PDF, RTF, DOC, ODT, or TXT).
%tr
%td{:colspan => "2"}= nbsp;

0 comments on commit 20aef4d

Please sign in to comment.