Displaying 20 results from an estimated 102 matches for "erubi".
Did you mean:
erubis
2006 Jun 30
2
Eruby.import -> "uninitialized constant" error
I''m working on porting a dynamic website done in PHP over to mod_ruby. I
have everything set up and working nicely (I can make a .rhtml page, put
ruby code between <% %> and it works etc), but when I try to use
"Eruby.import" as a sort of analog to PHP''s "require_once()", I run into
trouble.
1) eruby is in my cgi-bin
2) here''s a sample of
2007 Apr 03
4
Replacing ERB with Erubis
Hey guys,
I''ve been hearing a lot about erubis: http://www.kuwata-lab.com/erubis/
Especially about how much faster it is than straight ERB.
In their Ruby on Rails support docs: http://www.kuwata-lab.com/erubis/users-guide.05.html#topics-rails
They state that with a few added lines to your environment.rb it will
replace ERB completely.
I'...
2010 Apr 06
3
(Rails3-master) erubis: how to use things like preprocessing?
(Rails3 latest git master)
Subject says it. I''m trying to figure out how to use erubis features
described here: http://www.kuwata-lab.com/erubis/users-guide.05.html#rails,
especially preprocessing. My question is, where do I place the
Erubis::Helpers::RailsHelper.preprocessing=true
Not in application.rb, at that point the object does not exist yet it
seems. I wonder why I don...
2006 Dec 22
2
erubis on rails
Hey,
Just thought I''d see how easy it was to use erubis rather than erb in
rails, and so far all seems to be pretty easy. Just added a few lines in
environment.rb and everything works as before.
However, one page is causing a problem. It is a partial that is being
passed a local variable. erubis doesn''t seem to see the local, and gives
the fo...
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
2007 Aug 29
11
Non-Erubis Templates
Trunk Issue: Because of the use of ''autoload'', template handlers other
than Erubis are not loaded automatically (Haml, XMLBuilder). Either
this should be fixed, or the documentation should be updated to
instruct people how to use non-Erb template engines.
Apparently the solution is to do something like this in merb_init.rb:
::Merb::AbstractController.register_engine ::Merb::...
2005 Apr 08
0
switch mod_ruby to fastcgi but still use eruby?
Hello there list-
I have a question I hope someone can answer. I have a Debian server
that currently has mod_ruby and eruby installed and working great for
the last year or so. I also have one rails app working great on this
box. My question is this: I want to switch to fastcgi so i can have
more than one rails app, but there are already many scripts using eruby
with no framework at all just
2010 Nov 20
0
Enabling preprocessing in Erubis makes views much faster
I wrote a 5 line hack that you can drop into your initializers
directory to enable preprocessing in Erubis. This will run code in <
%=== %> brackets at compile time making views considerably faster for
rails helpers that only need to be evaluated once instead of on each
render (the Erubis docs mention 20-40% speed increase but obviously it
depends on the amount you precompile).
For example:
<...
2006 Dec 20
0
Erubis / Rails Question
I''m trying to figure out whether the fix for an error I get when using
Erubis belongs to Erubis or Rails so I can submit a bug/patch/whatever. When
you use form_for in an Erubis template the instance_eval uses _erbout
instead of _buf. I found the solution [adding
ActionView::Base.erb_variable= "_buf" to the setup in
app/controllers/application.rb] but in searching...
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
2006 Jun 04
4
eRuby & Rails: Not Compatible
I''m new to Ruby, Rails, and this list. I''ve tried searching for an
answer but it all seems to be over my head. I have all the books but
again they seem to leave me on my own to figure out the stuff that
really matters. Where is the best place to find out the details?
Exactly what are these much celebrated "naming conventions"; i.e. where
do I find an exhaustive
2006 Dec 19
7
Improve the rendering speed of rhtml
I found through the log file that the render of the rhtml template would
take too much time if there exists ruby code in the rhtml files.In many
cases,these ruby code are tied with these rhtml files closely and can
not be decoupled from that,therefore,i have a question that,is there
exist some way to improve the rendering speed of rhtml when some ruby
codes are included?
--
Posted via
2010 Nov 05
9
[patch] Let's use <%== %> instead of <%= raw() %>
I''ve submitted a small patch to make Rails behave properly with the
Erubis <%== %> construct. For some reason the current behaviour of
that tag in Rails 3 is to escape the contents _twice_ which is
probably a bug.
I offer three suggestions why this is a good idea:
- The syntax is cleaner. It can avoid a lot of .html_safe and raw in
your views. I especially like t...
2007 Sep 04
11
returning(...) ?
...entry.index).to_s) if c == ''0''
- end.to_i
+ c = (entry.quality <=> quality).to_s
+ c.replace((index <=> entry.index).to_s) if c == ''0''
+ c.to_i
end
def eql?(entry)
Index: lib/merb/template/erubis.rb
===================================================================
--- lib/merb/template/erubis.rb (revision 508)
+++ lib/merb/template/erubis.rb (working copy)
@@ -40,12 +40,12 @@
return @@erbs[path]
else
begin
- returning ::Erubis::MEruby.n...
2007 Dec 30
2
Loading config YAML into merb process for the life of the process
Hey Chaps,
Forgive me for not fully understanding the inner workings of merb, but
I would like to read in a YAML configuration file once when the
application is booted rather than reading it every time it is used (as
presumably the overhead in doing that is significant?) - I had
presumed this is how both Merb and rails do it for there database.yml
config files (hence its a requirement
2011 Mar 16
19
Uninitialized constant Files::Magick -still around
Hi there,
I''m solving the problem about the plugin Magick. In my app in Gemfile
I''ve follwoing:
require ''rubygems''
require ''mongo''
require ''RMagick''
include Magick
and in a model Files:
class Files
def self.save(upload)
...
img = Magick::Image.read(''public/data/nature6.jpg'').first
end
end
2006 Feb 13
1
Is this same or different
Hi,
Is eruby & ruby on rails are same or diffrent.
If not same,then what is the diffrence?
Please.
--
Posted via http://www.ruby-forum.com/.
2011 Sep 19
27
Installing Rails Help!
...3, activerecord-3.1.0, activerecord-3.0.3,
activeresource-3.1.0, activeresource-3.0.3, activesupport-3.1.0,
activesupport-3.0.3, ansi-1.3.0, arel-2.2.1, arel-2.0.10, bcrypt-ruby-3.0.1,
builder-3.0.0, builder-2.1.2, bundler-1.0.18, coffee-rails-3.1.1,
coffee-script-2.2.0, coffee-script-source-1.1.2, erubis-2.7.0, erubis-2.6.6,
execjs-1.2.6, hike-1.2.1, i18n-0.6.0, jquery-rails-1.0.14, mail-2.3.0,
mail-2.2.19, mime-types-1.16, multi_json-1.0.3, mysql2-0.3.7,
polyglot-0.3.2, rack-1.3.2, rack-1.2.3, rack-cache-1.0.3, rack-mount-0.8.3,
rack-mount-0.6.14, rack-ssl-1.3.2, rack-test-0.6.1, rack-test-0.5.7,...
2011 Oct 30
2
Could not find rails (>= 0) amongst [bundler-1.0.21]
...(100%)
Fetching: activemodel-3.0.1.gem (100%)
Fetching: rack-1.2.4.gem (100%)
Fetching: rack-test-0.5.7.gem (100%)
Fetching: rack-mount-0.6.14.gem (100%)
Fetching: tzinfo-0.3.30.gem (100%)
Fetching: abstract-1.0.0.gem (100%)
WARNING: abstract-1.0.0 has an invalid nil value for @cert_chain
Fetching: erubis-2.6.6.gem (100%)
Fetching: actionpack-3.0.1.gem (100%)
Fetching: arel-1.0.1.gem (100%)
Fetching: activerecord-3.0.1.gem (100%)
Fetching: activeresource-3.0.1.gem (100%)
Fetching: mime-types-1.17.2.gem (100%)
Fetching: polyglot-0.3.2.gem (100%)
Fetching: treetop-1.4.10.gem (100%)
Fetching: mail-2.2...
2006 Aug 18
2
printing out text in .rhtml files
Hi all,
In php i can do something like this:
<?php
print ''hello'';
print '' world'';
?>
Is there an equivalent to print in eruby, or do I have to use multiple
<%= %> lines?
Thanks!
Jack
p.s. I tried posting this before, but I don''t see it. Sorry if this is a
repeat.
--
Posted via http://www.ruby-forum.com/.