similar to: recursive ruby function in rhtml

Displaying 20 results from an estimated 90000 matches similar to: "recursive ruby function in rhtml"

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
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,
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 Apr 26
3
Setting focus in a rhtml view
How do I set focus on a specific form field when I render a partial from the controller? I can do it with page[''name''].focus from an RJS view, but I can''t figure out how to do it when rendering this rhtml partial from the controller. I''m rendering a partial with two fields and neither one has focus until I hit the tab key or put the cursor in a field with the
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
2008 Jul 23
2
difference between html.hi to evererb &rhtml
hi to everyone whats the difference between html.erb & rhtml -- 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 unsubscribe from this
2007 Aug 03
2
Does collection_select work in list.rhtml?
Hi, I have 2 models: Model 1: er, Columns: <er_id, er_name> Model 2: er_process, Columns: <er_id, er_process_name> er_id is a foreign key for Model 2. When I am creating a new er_process or editing an existing one, I have been successful to use collection_select to show the available er''s so that the user can select a particular er by its name (to populate the er_id
2007 Dec 08
6
Rails 2.0 ActionMailer breaks my redmine render_message
I am using ''redmine'' (v 0.6) as my major project manager, seems running fine w Rails 2.0 (slight modifs for paginations..) but I am stuck with a major error when sending a confirmation email : mailer.rb class Mailer < ActionMailer::Base .... # Renders a message with the corresponding layout def render_message(method_name, body) layout =
2007 Sep 17
1
Fwd: Problem - Editing rhtml in NetBeans is very slow - only for me?
Hi Did anyone except me ever experienced very slow response when editing rhtml in NetBeans? It starts ok, but after a couple of minutes of editing it takes several seconds to move the cursor from one line to another. I''m on Ubuntu and using the today''s NetBeans rubyide build. I''ve tried to switch off all features for the RHTML editor in ''advanced
2007 Jun 25
2
passing parameters from rhtml to rjs
I need some parameters to go from my rhtml to my rjs. Anyone know how to do this? -- Amos King A. King Software Development and Consulting, L.C. http://dirtyInformation.com -- Looking for something to do? Visit http://ImThere.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
2008 Mar 17
2
sort the collection in the index.rhtml
Hi, i am using rails 1.2.6 please forgive me as this application is live and i could not find the time to move it to rails 2.0 i have a index.rhtml for items item has 3 attributes other than id, they are name, category and size current status => inside the index.rhtml i obviously already display my data as below: name category size a mugs L aa mugs M abc
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> .....................
2008 Aug 30
5
make layout false
Hi i am having lot of HTML files those files dont want layouts so, for each rhtml i am mentioning in controller list.rhtml,edit.rhtml def list render :layout=>false end def edit render :layout=>false end is any simple method to mention wat are the files dont want layout in one line.. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~
2008 Sep 17
2
Layouts and content_for
when i studied the tutorial about layouts & content_for from railscast.I need a clarification as per their tutorial. url:http://railscasts.com/episodes/8-layouts-and-content-for <!- projects/index.rhtml -> <% content_for :head do %> <= stylesheet_link_tag ‘projects’ %> < end %> <!- layouts/application.rhtml -> <head> <title>Todo List</title>
2007 Nov 23
4
How to pin down location of views/shared directory ?
My app has a header & footer I want common to each section. They live in app/views/shared/_header.rhtml & _footer.rhtml. They are referenced by app/views/layouts/application.rhtml as one would expect: <div id="header"> <%= render :partial => ''shared/header'' %> </div> They contain many lines like this: <a
2007 Oct 15
6
Form with two buttons
Hi, I need to make a form with two buttons. But I do wrong. And why not can be. form: ------------------------------- <%= form_tag :controller => ''establishment_contents'', :action => ''llamada'', :opMenu => opcionMenu %> [...] <%= image_submit_tag ("../images/incluir.gif", :op=>"addImage") %> [...] <%=
2006 Nov 04
1
trouble linking from the html page to a rhtml page
Hi, I am having trouble linking from the html page to a rhtml page. Any suggestions will be greatly appreciated. JIm -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060824/b197ad2b/attachment-0001.html
2008 Jan 15
3
Importing file in html (noob)
Hi People, I''m pretty new to rails so please bear with me on this. I''m wanting to pull a text file into my rhtml page to use as the header part of my site. I know I can use layouts but it isn''t pratical for my problem as there could be hundreds of user made headers. So there are two ways I can see this happening. One is to store the location of the file in the
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/.
2008 Jan 08
3
What happened to _form.rhtml partial in rails 2.0??
Just wondering if anyone could point me to a good explanation of why the latest way of doing things does not include using something like _form.html.erb partials in RESTful rails 2.0?? Why did we move away from partials, etc?? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To