Displaying 20 results from an estimated 1382 matches for "erbe".
Did you mean:
erb
2007 May 04
3
fileserver hanging
hello,
we just wanted to rollout our new puppetized dmz. therefore i change all
ip adresses from the test network to the live ips. after restarting
puppetmasterd it seems that the fileserver hangs:
client log:
debug: //true_base/update-check/File[/sbin/update_check.pl]/require:
requires Package[libmail-sendmail-perl]
debug: //true_base/puppetd/File[/etc/puppet/puppetd.conf]/require:
requires
2006 Feb 20
7
Native erb lacks -%>, where is Rails'' erb?
Native ERB in ruby, and eruby, seem to lack the -%> feature for
suppressing trailing newlines. Thus
erb -n script
gives errors. Where is Rails ERB so I can invoke it directly?
Thank you
Hugh
2006 Jul 25
3
about ERB sample
Hi list:
I run the ri''s ERB doc 1st sample
1. require ''erb''
2. x = 42
3. template = ERB.new <<-EOF
4. The value of x is:
5. EOF
6. puts template.result(binding)
the doc say it will print
"The value of x is: 42"
but my irb print "nil" and there is a
"=> #<ERB:0x2970b24
2011 Nov 18
2
Are tildes actually valid in templates or is this a bug?
Hi all,
First off, we''re running Puppet 2.7.6 with Ruby 1.8.7 on CentOS 6.0.
Now, I''m using tildes in a template to prevent newlines from appearing but
ruby/puppet is choking on them.
*/tmp/puppet$ cat test.erb*
Line 1: Line 2 will exist if running on CentOS.
<% if operatingsystem == "CentOS" ~%>
Line 2: Yay, we''re running CentOS.
<% end ~%>
2007 Jan 19
4
Rendering with erb
Hi, I thought it would be fun to try to write a render method that
uses erb for rending. I''m not much of a programmer, but I still like
to try:
module Test
require ''erb''
def render(m)
ERB.new(IO.read("templates/layout.html")).result(binding) do
ERB.new(IO.read("templates/#{m}.html")).result(binding)
end
end
end
This
2009 Jun 07
6
Missing Template when testing with the Brain Buster Captcha partial
When I run my functional tests, they throw an error with the following
message:
ActionView::TemplateError: Missing template /_captcha.erb in view path
app/views:test/vendor/plugins/brain_buster/views/brain_busters
On line #23 of app/views/contacts/_form.html.erb
20: <%= f.label :message %><br />
21: <%= f.text_area :message %>
22:
2009 Aug 27
8
Adding New Column
I added a new column using a migration. Once I updated the
new.html.erb, edit.html.erb, show.html.erb, and the index.html.erb I
brought up my web pages. There was a field to update show. I tried the
update and the it was successful but the update did not show up in any
of the other pages. What did I miss? I am using 2.3.3 of ror.
2009 Oct 20
10
REXML
Hi,
How to embed ruby code in xml .
here is my XML template :
string = <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ozxmlscene>
<ozml version="4.0">
<styleRun style="1091379" offset="0" length="7"/>
<text>The End</text>
<object value="84"/>
<object
2006 Apr 25
5
markaby or erb?
Guys,
We''re embarking on a new dev project, and I''m curious....why would one
choose markaby over erb? I for one am no fan of the erb syntax, but
aside from that it''s similar to other technologies I''ve used in the
past: PHP, JSP, ASP, etc.
Why would one choose markaby over erb? What are the benefits? What are
the drawbacks? Is there anything remarkable
2011 Oct 18
2
Puppet node fails to pass facts to master
Hello Puppet list,
I am taking over the puppet configuration of a sysadmin who left, and
am having troubles deploying puppet to a new node. We are using puppet
v2.7.3 both on the client and the puppetmaster, on Ubuntu 10.10.
The node asks for a certificate fine, and I signed it on the
puppetmaster.
For the following logs extract I ve replaced the FQDN of my node by
puppet.example.com.
When doing
2007 Sep 29
1
templates with same name before extension are cached
Hi all,
I was just wondering if this is the intended behavior. Here is my setup:
controller
def index
respond_to do |f|
f.xml { render :xml => true }
f.html { render :layout => :none }
end
end
In my views I have a file for each type
index.herb
index.xerb
The first request I send is cached and interferes with the other one.
For example, if I send an xml request
2009 Jan 20
5
Problem running rake test
I''m using the One-click 1.8.7rc2 Ruby Windows installer, everything
has been working fine up till now, when i want to start getting into
testing, i got this error, any reason why?
C:/Ruby/bin/ruby -Ilib;test "C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/
lib/rake/rake_test_loader.rb" "test/unit/word_test.rb"
C:/Ruby/lib/ruby/1.8/erb.rb:469:in `scan'': You have a
2010 Jul 02
17
Doesn't work erb engine
I''m new in RoR:)
I have controller and view (/app/controllers/greeting_controller.rb
and /app/views/greeting/index.rhtml /.erb/.html.erb - doesn''t match).
greeting_controller.rb source:
class GreetingController < ApplicationController
def index
@message = "Hello world!"
end
end
index.rhtml source:
<html>
2007 Sep 28
2
RoR uses something rather than erb or eRuby?
it seems that RoR doesn''t use erb or eRuby to generate its output for
rhtml?
the program erb and the description of eRuby at
http://www.eruby.info
both said that
<% print "foo bar" %> or <% puts "hello" %>
will be placed into the output...
but currently for RoR, it won''t...
only <%= expr %> is doing it and it cannot be print or
2006 Feb 07
4
__END__ equivalent for erb?
Time and time again I find the need to terminate evaluation of an erb
file on a certain line for debugging purposes, but can''t figure out a
way to do it. Is this possible?
Thanks!
John
--
Posted with http://DevLists.com. Sign up and save your time!
2010 Aug 06
0
adding options to erb scaffold generator to include or skip custom views / templates
created a small patch.. looking for feedback / etc..
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5319-adding-options-to-erb-scaffold-generator-to-include-or-skip-custom-views-templates#ticket-5319-2
When I was working on customizing the erb scaffold generator to match
the style and design I wanted to use by creating custom templates in /
lib/templates/erb/scaffold I found
2010 Apr 19
3
which views are rendered for an URL
Hi,
Is there a way I can figure out which files are run for a specific
URL?
Given http://www.planet.com/countries files like: countries/
index.html.erb, countries/_country.html.erb, layouts/
application.html.erb and so on.
Thank You
--
M.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2010 Jul 06
2
%% in templates
Hiya,
I''ve recently updated my svn server so that it checks the syntax of
.erb files, on commit, along with .pp files. While doing this, I ran
across a small but niggling issue and wanted to see if I was just
doing something wrong or if it was a bug.
In my sudoers template file, I have a number of lines that start along
the lines of:
%sup ALL=NOPASSWD: ALL
%mon ALL=NOPASSWD: ALL
2006 Aug 28
10
Templates and arrays
I''m in the process of documenting templates right now, and I figured
I should see what happens when you use them with arrays:
$ cat ~/bin/test.pp
$values = [this, is, an, array, of, values]
$content = template("/tmp/templates/testing.erb")
file { "/tmp/temtest": content => $content }
$ cat /tmp/templates/testing.erb
<% values.each do |val| %>
I got
2012 May 21
4
Rendering partial views with ajax calls in rails 3.1
I''m starting now with rails, and i have simply question i think.
I need to render two partials in one ajax call:
I have the following controller:
# GET /hosts/1
# GET /hosts/1.json
def show
@host = Host.find(params[:id])
respond_to do |format|
format.html #show.html
format.js
format.json { render :json => @host }
end