Displaying 20 results from an estimated 11000 matches similar to: "Improve the rendering speed of rhtml"
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''m wondering if anyone has done this in
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
2007 May 23
8
Rails Rendering diagnostics.rhtml in Controller Spec
Forgive me if this isn''t the proper list. It''s specific to the rSpec
Rails plugin.
The problem is, some controller actions are rendering the
"diagnostics.rhtml" template when I''m expecting it to render something
else in a controller spec. I''m assuming this is the template that
displays the error message and a stack trace when an error is raised
in the
2007 Jul 26
3
rhtml output
Just a simple question. I know what this does" <%= %> for output but
what is the purpose of the negative sign in this <%= -%> in a rhtml
template?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
2006 Sep 28
2
RHTML page not rendering properly
I''ve got a weired problem. I got a RHTML page which is not rendered
properly in the browser all other pages in my app do renders correctly.
Only this one page returns the page''s HTML with the following header
Content-Type: text/html
Set-Cookie: _session_id=cb3c140fd4ef907c99ef203a053fba1a; path=/
Status: 200 OK
Cache-Control: no-cache
<html>
.....................
2006 Jul 05
2
Vim and .rhtml
So is there any hope of someone creating a vim syntax file for ERb,
particularly RHTML? I''ve been using mason for the filetype which is close,
but imperfect. It might be a good starting point. I''m considering doing it
myself, but I thought I''d check to see if anyone else was already on the
job.
--Greg
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
2007 Jan 25
2
render .rhtmlx if present, otherwise render .rhtml
We have a product where our customer is "allowed" to make minor changes
to the .rhtml views.
Obviously, this can be an issue when updating the software, as changes
need to be merged in. Also, sometimes the customer wants to back out
there change but no longer has the original file.
SOOO....
I''d like to tell them
- if you want to change a .rhtml file
- just copy it to
2007 Jan 25
1
render rhtml templates in worker
I''m trying to make a worker that will render a large page to a file,
very similar to what rails'' builtin cacheing does except with the
rendering done outside of rails.
The only advice I''ve found is to use
ActionController::Integration::Session.new but this doesn''t seem to
allow setting session variables the way the functional tests do. Is
there a way to
2008 Jun 13
2
Rails 2.1: invalid date automatically convertion
Hi all,
Rails 2.1 seems to converts the following parameters
{''birth(1i)''=''1990'', ''birth(2i)''=>''2'', ''birth(3i)''=>''31''}
into date ''1990-03-02'' automatically.
Is it able to inhibit this convertion?
--
makoto kuata
2006 Apr 19
3
include contents of one rhtml in another
Hi
I have a rhtml documment in views/account/login.rhtml
I want to include the contents of login.rhtml in
views/welcome/index.rhtml
any suggestions on how this can be done?
Thanks
Scott
--
Posted via http://www.ruby-forum.com/.
2007 Mar 20
4
rhtml plugin needed
Hi !
Is there any rhtml plugins for Eclipse ( or ) Radrails editors ?
Pls , suggest me !
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To
2006 Jan 27
3
Formatting Data in rhtml
Is there a simple way to format your data in the .rhtml file?
I come from a PHP/Smarty background, and in the templates, I''ve used
what is called "modifiers" to format data.
{$price|currency_format} # displays in currency format
{$description|truncate:"100"} # Truncates the description after 100
characters
It seems like the template (rhtml) would be the ideal
2006 Jun 22
2
Passing a value from one rhtml to another
I''m trying to find a way to get from one rhtml page to another and
taking a value along to use in the second page. Basically a user clicks
on one of many download links and what should appear on the next page is
all the available stuff related to that download, so I think if I take
the id number of the first page then i can use if statements in the
second page? Sorry if that sounds
2006 Aug 02
3
controller methods for app/views/A/B.rhtml
If I want to call A/B, can I call a corresponding controller action for
it?
Like with app/views/A.rhtml, I can it will call the method A in the
controller file.
But with A/B.rhtml, I cant do def A/B.
--
Posted via http://www.ruby-forum.com/.
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/.
2005 Dec 30
3
Too many columns for list.rhtml to display on one page
I''ve gone once through the Agile book and am now attempting my own rails
app. I''ve created a table named ''volunteers'' with over 15 columns. The
problem is the default list.rhtml that is created with the scaffold,
shows all the columns. I only want to show 4 of them with the list
view.
Where would I start to only return a handfull of columns to the
2006 Jul 26
7
RHTML in database?
Hi,
is it possible to store RHTML templates or partials in database?
thanks,
Bojan Mihelac
--
Bojan Mihelac
Informatika Mihelac, Bojan Mihelac s.p. | www.informatikamihelac.com
-> tools, scripts, tricks from our code lab: http://source.mihelac.org
2006 May 31
3
One RHTML file
I am making a simple app which has just a few screens and I would like
to do it with a single html file.
The file has all of the difffernt componants of each screen in hidden
div''s which I want to make visible and place as the visitor moves
through the site.
I can see that RoR has the ability but I am not quite getting it.
The path is roughly login -> modify account -> submit
2006 Mar 28
2
Homepage as index.rhtml, not index.html?
Hi all,
I''m building my first Rails app. Please forgive my ignorance as I get
acquainted with the technology.
What I''d like to do is have a form that the scaffolding created for me
appear on my home page. It''s just one text field, a submit button, and
some error messages.
I first tried to copy the code from the new.rhtml view into the homepage
(index.html), then