search for: my_templ

Displaying 3 results from an estimated 3 matches for "my_templ".

Did you mean: sv_templ
2006 Apr 08
2
Cannot use view helpers in RJS helpers
Any ideas why I would get an error in a RJS helper on view helpers such as number_to_currency. Example: # my_template.rjs page.help_me # my_helper for my_controller def help_me number_to_currency(10) end I have also tired page.number_to_currency but that doesn''t work either. Cheers, Nicholas
2013 Jul 12
1
ERB template pain
Hi, I have stupid situation that I may workaround but I think there is an elegant way to deal with. Still I need the community help. In some class X I have: $control = { dev => { id => 7, name => ''GG'' }, prod => { id => 1, name => ''Info'' } } In some other class, which I apply to a node I have defined file from a
2007 May 01
8
Custom functions and facts
...tom definition like this: node ''somenode.domain.com'' { custom_definition { name: address => $fqdn } } define custom_definition ($address){ "custom_name": $random_hour = hour_from_fqdn($address) file { "/path/to/file": content => template("my_template") } } I just wanted to verify that from a call to Facter[''fqdn''].value I should see somenode.domain.com instead of puppet.domain.com as the result. Any thoughts or suggestions? Thanks, Dustin