You will need to make an extension and put "heb_date" in application.rb
(or a library file in your extension) and application.html.haml in
app/views/layouts in your extension.
Read about extensions here:
https://github.com/radiant/radiant/wiki/Extensions
Wes
On 5/31/11 4:32 PM, [email protected] wrote:
I have another Rails project that I am using a Gem called HebRuby - It
calculates Hebrew dates and displays them.
In Application Controller:
def heb_date
today = Date.today
hebdate = Hebruby::HebrewDate.new today
day = hebdate.hd
month = Hebruby::HebrewDate::MONTH_NAMES[hebdate.hm]
year = hebdate.hy
@fhebdate = "#{day} #{month} #{year}"
end
--------------------------------------
In Application.html.haml
.field= @fhebdate
My question is: Where do I put these in my Radiant project to get them to
work?
Thanks
Al