blog.federicomaffei.com

current level - articles for beginners

Day 59 - Project Day 4.

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...

Day 58 - Project Day 3.

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...

Day 57 - Project Day 2.

var map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions);

Read more...

Day 56 - Project Day 1.

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...

Weekend - Kick Off!

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...