24 Jul 2014
json.array! @jobs do |job|
json.advert_title job.advert_title
json.address job.address
json.company job.company
json.category job.category
json.latitude job.latitude
json.longitude job.longitude
json.detail job.detail
json.email job.email
json.phone job.phone
json.wage job.wage
json.hours (job.full_time? ? "Full time" : "Part time")
end
Read more...
23 Jul 2014
class Job < ActiveRecord::Base
validates :advert_title, presence: true, length: { maximum: 40, minimum: 5 }
validates :company, presence: true, length: { maximum: 40, minimum: 3 }
validates :address, presence: true
validates :wage, numericality: { only_integer: true }
validates :email, format: { with: /\A[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})\z/ }
belongs_to :employer
geocoded_by :address
after_validation :geocode
end
Read more...
22 Jul 2014
var map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions);
Read more...
21 Jul 2014
Project WorkMap - day one.
Have to say it was a pretty good day, even better than I expected. It felt really nice to create the GitHub repo named WorkMap, and starting working on it.
Read more...
20 Jul 2014
Sunday, team meeting and time for a Scrum Kick-off.
This Scrum development framework, which we chose to use to build the final project, relies on three key roles:
Read more...