Skip to content

Commit

Permalink
location of job includes the country
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed May 9, 2011
1 parent 1c0a286 commit b8d366a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/models/job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ class Job < ActiveRecord::Base
after_create :notify_admin

def location
[self.state, self.city].join(', ')
[self.state, self.city, self.country].join(', ')
end

def tweet_title
"#{company} is looking for #{title} in #{location}, #{country}"
"#{company} is looking for #{title} in #{location}"
end

def tweet_path
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_sidebar.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
%li
%p.title= link_to job.title, job_path(job)
%p.company= job.company
%p.location= "#{job.location}, #{job.country}"
%p.location= job.location
%li.links
= link_to "View All Jobs", jobs_path, :class => 'all'
= link_to "Post a Job", new_job_path, :class => 'add'

0 comments on commit b8d366a

Please sign in to comment.