This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ActiveRecord | |
class Base | |
def object_url | |
"/" + [self.class.name.tableize, self.id].compact.collect(&:to_s).join("/") | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def jobs | |
@user = Recruiter.first | |
@jobs = Job.find(:all,:limit=>20) | |
@job_seekers = JobSeeker.all | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sym_to_markup(job,sym) | |
if sym.to_s.match(/_link$/) | |
m = sym.to_s.gsub(/_link$/,'').to_sym #if it's a link | |
obj = job.send(m) | |
link_to(obj.try(:name), obj, :class=>"job_#{sym.to_s}") | |
elsif job.attributes.include?(sym.to_s) #if it's an attribute | |
content_tag :span, job[sym.to_s], :class=>"job_#{sym.to_s}" | |
elsif job.respond_to? sym #if it's a method | |
content_tag :span, job.try(sym).try(:name), :class=>"job_#{sym.to_s}" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"page":[{"sufix":"","css":{"background-color":"rgba(255, 255,255, 1)","background-image":"none","backgroundId":"SiteBackground-508711ec1c83bb1c0800122f","filter":"progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffffff,endColorstr=#ffffffff);"}}],"full":{"header":[{"sufix":"","css":{"background-color":"rgba(201, 39,2, 1)","background-image":"none","background-repeat":"repeat","background-position":"0% 0%","backgroundId":"InstallationRepositoryBackground-25398","filter":"progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffc92702,endColorstr=#ffc92702);","box-shadow":"none","-moz-box-shadow":"inset rgba(48, 145,242, 1) 0px 2px 0px","-webkit-box-shadow":"inset rgba(48, 145,242, 1) 0px 2px 0px"}},{"sufix":" > .container","css":{"background":"none","background-image":"none","background-repeat":"no-repeat","background-position":"bottom center","padding-top":"20px","padding-bottom":"20px"}}],"intro":[{"sufix":"","css":{"background-color":"rgba(255, 255,255, 1)","background-image":"url(/attachment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="disqus_thread"></div> | |
<script type="text/javascript"> | |
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ | |
var disqus_shortname = 'empowerkitblog'; // required: replace example with your forum shortname | |
/* * * DON'T EDIT BELOW THIS LINE * * */ | |
(function() { | |
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; | |
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; | |
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script id="pap_x2s6df8d" src="http://jewelrycandles.postaffiliatepro.com/scripts/salejs.php" type="text/javascript"> </script> | |
<script type="text/javascript"> | |
var sale = PostAffTracker.createSale();sale.setTotalCost('{{total_price|money_without_currency}}'); | |
sale.setOrderID('{{order_number}}'); | |
PostAffTracker.register(); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Google Code for Purchase Conversion Page --> | |
<script type="text/javascript"> | |
/* <![CDATA[ */ | |
var google_conversion_id = 995760263; | |
var google_conversion_language = "en"; | |
var google_conversion_format = "3"; | |
var google_conversion_color = "ffffff"; | |
var google_conversion_label = "6VhVCOmVgQUQh7Ho2gM"; | |
if ({{ subtotal_price }}) { var google_conversion_value = {{ subtotal_price | money_without_currency }}; } | |
/* ]]> */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Google Code for Purchase Conversion Page --> | |
<script type="text/javascript"> | |
/* <![CDATA[ */ | |
var google_conversion_id = 995760263; | |
var google_conversion_language = "en"; | |
var google_conversion_format = "3"; | |
var google_conversion_color = "ffffff"; | |
var google_conversion_label = "6VhVCOmVgQUQh7Ho2gM"; | |
if ({{ subtotal_price }}) { var google_conversion_value = {{ subtotal_price | money_without_currency }}; } | |
/* ]]> */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.myButton { | |
-moz-box-shadow:inset 0px 1px 0px 0px #cf866c; | |
-webkit-box-shadow:inset 0px 1px 0px 0px #cf866c; | |
box-shadow:inset 0px 1px 0px 0px #cf866c; | |
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #d0451b), color-stop(1, #b71c16)); | |
background:-moz-linear-gradient(top, #d0451b 5%, #b71c16 100%); | |
background:-webkit-linear-gradient(top, #d0451b 5%, #b71c16 100%); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
.myButton { | |
-moz-box-shadow:inset 0px 1px 0px 0px #cf866c; | |
-webkit-box-shadow:inset 0px 1px 0px 0px #cf866c; | |
box-shadow:inset 0px 1px 0px 0px #cf866c; | |
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #d0451b), color-stop(1, #b71c16)); | |
background:-moz-linear-gradient(top, #d0451b 5%, #b71c16 100%); | |
background:-webkit-linear-gradient(top, #d0451b 5%, #b71c16 100%); |
OlderNewer