similar to: render .rhtmlx if present, otherwise render .rhtml

Displaying 20 results from an estimated 2000 matches similar to: "render .rhtmlx if present, otherwise render .rhtml"

2012 Oct 18
1
mean value calculation
Dear all, I want to calculate mean values for multiple rows: structure(list(Name = structure(c(1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L), .Label = c("AKT", "CKT"), class = "factor"), val1 = c(2, 3, 2, 2, 2, 5, 3, 8, 2), val2. = c(4, 5, 4, 8, 4, 8, 4, 7, 4), val3 = c(5, 6, 5, 9, 5, 9, 5, 9, 5)), .Names = c("Name", "val1", "val2.",
2006 Oct 28
2
anything rails based app like pligg or digg out there ?
I am wanting to do something like digg but internally at our company and am looking for a rails based starting point. There is something out there called pligg which seems pretty good, but it is PHP based and I expect to be making quite a few changes/additions, so would really prefer a project based on rails ! - hope to hear from you --~--~---------~--~----~------------~-------~--~----~ You
2009 Jul 16
12
Find_all_by and find(:all) to only select certain values for a selection box
So....let''s have a look if I understood the issue: -Find_all_by is actually the same like Find(:all), however Find_all_by is much shorter and less complicated than the syntax of Find(:all) -So in my CONTROLLER it says @files = find(:all) however I don''t want to see all files displayed in my selection box, because I only want to see the foles whose mandant_id is the same like
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
2006 Sep 26
0
Is it possible to render RXML partials in RHTML templates?
I have a RHTML template and I would like the output of a RXML partial to be embedded within it. When I do <%= render(:partial => ''list_edit'') %> where there exists a _list_edit.rmxl file, I get XML parsing errors in the browser - I believe because the partial is causing the rendered content to be identified as XML instead of HTML. Is there any way to
2008 Jun 06
1
Need help with Decryption using blowfish CBC
Hello all, Hoping someone can help me out here. I''ve burned almost a week trying to figure out how to decrypt an image file that has been encrypted using Blowfish CBC. I found some code on the net and have modified as follows: require ''openssl'' require ''digest/sha1'' ivArr = [0x0D, 0x0E, 0x0A, 0x0D, 0x0F, 0x0A, 0x0C, 0x0E ]
2008 Jan 08
1
add comments to ALL models (ie automatically add has_many)
I have the acts_as_commentable and a bunch of others added to pretty much every model, is there a way to automaically add these to EVERY model ? I tried the following but it fails with an error... ActiveRecord::Base.class_eval do has_many :notes, :as => :model_with_notes, :dependent => true end fails with.... /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/
2006 Dec 29
1
development, test, production ... how about stage
I find a "mode" is missing when I iterate on my rails apps... Specifically, right before production, I want to run on my development machine as if I am in production mode. It mainly boils down to this... - I want the production setup (caching, error handling, etc) - but I want my local machine DB (password, socket, etc) So I have been using an additional mode that I call stage. - just
2008 Feb 06
3
slogging my way thru oracle, not adapter? gem install fails?
<ubuntu_gutsy> me@ubuntu:~/workspace/oracle/ro$ gem install activerecord-oci-adapter Bulk updating Gem source index for: http://gems.rubyforge.org ERROR: While executing gem ... (Gem::GemNotFoundException) Could not find activerecord-oci-adapter (> 0) in any repository <ubuntu_gutsy> me@ubuntu:~/workspace/oracle/ro$ rake db:migrate (in /home/me/workspace/oracle/ro) rake
2006 Jun 14
0
Force rendering an otherwise remotely updated section
I''ve got a place where the user can add lines to an array of data, refreshing the form remotely in place so that every time you submit, a new line of output shows up and you can continue editing. When the user comes back to this page, though, I would like to start by showing all the array elements that are already in there. In other words, I want to render the partial once, that
2006 Mar 22
0
Lighttpd aliased does not render css or images - please help!
Hello all, I''m very badly in need of help here. I''m sooo close to this solution, and I WILL be blogging this when I finally have it working. I''m using Lighttpd + Mongrel + aliased app. I have the basic alias working. http://localhost/myapp/ renders the routed :controller/:action as does http//localhost/myapp/controller/action for production pages. The page source
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> .....................
2007 Mar 25
2
Installing R on a machine with 64-bit Opteron processors
I have been tasked with installing statistical and other data analysis applications on a new Sun Fire X4600 M2 x64 server that came equipped with eight AMD dual core Opteronn 64-bit processors. It is running the 64-bit version of Suse Linux 9. I have read through the installation docs, and I guess I don't understand what to do, or even how to identify which version, if any, of this
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 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
2006 Mar 12
0
ERB and Builder template engines shouldn''t be so heavily wired in ActionView::Base
Problem: 1. ERB and Builder template engines are heavily wired in ActionView::Base 2. Should be optional. If we use different engine - why load all their stuff if not needed? 3. There are template engines which expect files in their own locations and cache them in their own way. For instance a template engine may store templates in a database. These engines don''t need any central source
2006 Feb 05
1
Database works with console, fails otherwise
I can use database via script/console. Item.create and Item.find works ok. When I try to do the same thing on a test page, I get this error message: Mysql::Error: Lost connection to MySQL server during query: SELECT * FROM items LIMIT 1 I suppose they both use the same settings, so what could be the reason for this behaviour?? -- Posted via http://www.ruby-forum.com/.
2007 Feb 20
0
[PATCH] Xenconsoled should ignore spurious watch event. Otherwise, it can rebind to the same evtchn of a dying domU during suspending and cause below error message:
# HG changeset patch # User john.levon@sun.com # Date 1171946682 28800 # Node ID e8a7491ed4c57d4d82642dd954b8909d9065b377 # Parent 24a6bc1d1b93405558741a2a8fa7ba2f7c44964a Xenconsoled should ignore spurious watch event. Otherwise, it can rebind to the same evtchn of a dying domU during suspending and cause below error message: (XEN) event_channel.c:177:d0 EVTCHNOP failure: domain 0, error -22,
2006 Dec 21
0
weird kerberos enctype error on otherwise working 3.0.23d install
I have a Samba-3.0.23d installed on a CentOS4.4 server that cannot be connected to from other machines in the same W2K3 ADS. The server was added to the ADS successfully via "kinit admin@REALM" and "net ads testjoin" works just fine. The clocks are NTP-synced and no clock slew errors are to be seen. If WinXP/Win2K3 clients connect using \\ip.address\ it works fine, but if they
2009 Apr 18
1
[PATCH] When user provides an encoding then use it, otherwise autodetect it
Hi, I''ve created a small patch to mechanize. The problem: The user should be able to set his own page encoding, for example when <meta /> encoding information can is invalid or auto detection routines fail to guess correctly. Actual results: Mechanize will use the encoding detected by it (or Nokogiri/libxml2) always when there''s a <meta /> with encoding information