similar to: Processing config files as ERB templates

Displaying 20 results from an estimated 30000 matches similar to: "Processing config files as ERB templates"

2006 Jun 22
2
eRuby/erb
Hello. Prospective Mongrel user here. Can Mongrel act as a server for eruby or erb files? Example: <html> <body> <p>The time is <%= Time.now %></p> </body> </html> Pistos
2009 May 24
3
index.erb vs rhtml
I am a total Ruby/RoR n00b having just started reading the ''Ruby on Rails Bible'' book two days ago. I''ve been trying to work out through the introductory ''Your first ruby on rails application'' section, but I''ve run into problems already! The book goes on about creating the view templates and naming them with the *.html.erb extension, but I get
2006 Oct 17
4
Merb, Mongrel+Erb
Hey there folks- I''m happy to announce the first useable release of my new pocket- framework Merb. Merb is a mongrel handler with built in controller and view templating with erb. It has a nice routing system similar to rails but much simpler. It uses some of the code from the camping handler and the rails handler and then some of its own secret sauce to form imho a nice fast
2006 Aug 22
6
Mongrel crashes - bad doggie
Hello List, I have a production machine with very low ram (Xen Virtual Server) that runs mysql and lighty->pound->mongrel (2 instances). About once a day, one of the mongrels just locks up, leaving that in its log files: *** glibc detected *** /usr/bin/ruby: free(): invalid next size (fast): 0x0a744780 *** That process (mongrel) will stay locked, not answer any connections anymore and
2008 Apr 12
1
index.html.erb
Hi Everyone, A newbie question, I have my subdomain pointing to th respective app/views folder however the browser does not default to the index.html.erb , so instead I just have file listing. When I click on the index.html.erb it does work fine. What do I need to do to get it to work so it automatically load when a user goes to that view folder. Thanks in advance Using ROR 2.2 -- Posted
2006 May 01
3
mongrel_cluster-0.1.1: the bird dog (capistrano support!)
Hey y''all: mongrel_cluster provides management tools for running Mongrel behind a reverse-proxy/load balancer. It is an extraction from Rails Machine, a deployment service and Ruby library that simplifies Rails application deployment. This release fixes bugs and adds a Capistrano task library. Changes: -changed pid file format to include port -only write configuration options
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
2008 Apr 13
8
Brand new to rails: can't get databases to work
Just starting to learn rails. All is going well, until I tried to hook up a database. "undefined method `model'' for ZingerController:Class" is the message I get from the server. I imagine I''ve left something out that is keeping me from connecting to the database, but I''m not exactly sure what. Your help is appreciated. bests, -rsr- session dump:
2006 Dec 19
1
mongrel_config has no output
I am not sure what i am doing wrong here, but no matter what i try i get no output from mongrel_config: $ mongrel_rails configtool $ telnet localhost 3001 Trying 127.0.0.1... Connected to localhost. Escape character is ''^]''. GET /config/ HTTP/1.1 HTTP/1.1 200 OK Connection: close Date: Tue, 19 Dec 2006 05:33:16 GMT Content-Type: text/html Content-Length: 0 Connection closed by
2012 Feb 06
2
What is the fully-qualified variable name format for external and factors variable in template erb file?
Trying to cleanup warning messages like the following: Dynamic lookup of $domain at /etc/puppetlabs/puppet/modules/centrifydc/templates/centrifydc.conf.erb:222 is deprecated. Support will be removed in Puppet 2.8. Use a fully-qualified variable name (e.g., $classname::variable) or parameterized classes. Do I simply replace <%= domain %> with <%= ::domain %> ? Same goes with
2008 Dec 20
4
Accessing rails helpers when processing erb snippets
I need to be able to merge a lot of content for web pages, along with links to other pages taken from a list of categories. The text that goes with each category can be different depending on the context that it''s displayed in. I could do this by having a whole stack of *.html.erb files which hold the static content and access the Rails helpers to pull in stuff from the database and
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
2006 Jun 18
5
[slightly OT] Apache 2.2.2 proxy config
Apologies, this may be off-topic. I''ve been wrestling with upload issues and Apache 2.2.2 / mod_proxy_balanacer / mongrel_cluster / Mongrel on Mac OS X Server 10.4.5. Typically the first upload would be fine but the next would make the mongrel instance remain running (ps state = "R") essentially locking up that instance. Apache would then eventually do: [Fri Jun 16 16:45:54
2007 Jan 30
3
Update for thread: Multiple rails apps with Mongrel
Hi, I found another way to throw multiple rails apps under a single domain like: http://www.domain.com/app1 http://www.domain.com/app2 changes here... http://tonyrose023.blogspot.com/2007/01/multiple-rails-apps-with- mongrel.html Tony
2011 Mar 23
2
rails 3 + mongrel + mime type swf
Hi there! I ran rails 3 application in localhost. In index.html.erb file I added <object type="application/x-shockwave-flash" data="../public/player_mp3.swf" width="200" height="20"> <param name="movie" value="player_mp3.swf" /> <param name="FlashVars" value="mp3=file.mp3" />
2012 Apr 24
3
How to increment variable in erb template ?
Hi'', I''m looking for a way to increment variable in template (erb file). I tried this, but it didn''t work Compteur <%= compteur %> > <% compteur = compteur + 1 %> > Compteur <%= compteur %> > I''ve got this error : > Error 400 on SERVER: Failed to parse template test/test.erb: undefined > method `+'' for
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
2012 Nov 01
0
Lookup and scoping of hiera data from erb templates
Hey Folks. Reading through the docs and the mailing list only helped confusing me more, so maybe its better to just ask if my approach is correct. Imagine a basic project structure with a module and two classes inside: modules |- my_module |-frontend |-backend I''m using Hiera to manage dynamic values, so lets say I have: --- backend: foo: bar: "boo" baz: 42
2009 Aug 13
6
Mongrel Memory Usage
All, I''m trying to figure out the best way to estimate the amount of memory usage that will be taken up by Mongrel and I''m hoping that you have some estimates that can help me. I''m currently estimating the following: Memory Required = Number of running puppetmasters * size of manifests * number of clients managed The mongrel model doesn''t seem to *ever*
2006 Aug 17
1
Mongrel, development mode, and deleting/moving templates
I''m not sure what''s to blame, but it seems that if I delete or move a template, restarting is necessary. For example, I recently moved a partial from app/views/members/_login.rhtml to app/views/members/_login.mab, after which I got a blank-page-of-death. Once I restarted my Mongrel cluster, it worked. Shouldn''t changes like this get picked up automatically in