chrisfinch / thefrontend

A job site for developers
2 stars 0 forks source link

Modify schema for jobs #2

Closed chrisfinch closed 12 years ago

chrisfinch commented 12 years ago

Jobs search result loop template now looks for the following:

    <li class="job" data-id="<%= job.id %>">

        <div class="title"><%= job.title %></div>
        <div class="company"><%= job.company %></div>
        <div class="tags"><%= job.tags %></div>
        <div class="type"><%= job.type %></div>
        <div class="salary"><%= job.salary %></div>
        <div class="link"><a href="#jobs/<%= job.id %>">View &raquo;</a></div>

    </li><!-- .job -->

Can you make sure all of the are available in the database?

BenConstable commented 12 years ago

Cool yep, I'll update the job.rb model to have this stuff. Will let you know here when the code's in place.

BenConstable commented 12 years ago

This is now in place, as of this commit. I also changed the keywords field to be an array, and set some defaults on the Backbone model to make sure the arrays are setup properly.