search for: mylayout

Displaying 9 results from an estimated 9 matches for "mylayout".

2006 Jul 18
4
Multiple Layouts - Single Controller
How do I do multiple layouts for a single controller: I am aware I can do... render(:layout =>''mylayout'') for individual actions, however this becomes a multiple render problem. I tried this... layout "mylayout", :except => [:myaction, :myotheraction] layout "myotherlayout", :only => [:myaction, :myotheraction] However that doesn''t work, I just get b...
2006 Jun 27
2
Using a different layout/styleshheet
Hi, I have a view that I use to display and capture data. Once the user has input the required data, I then need to be able to print the view. I know that I can setup a stylesheet to take care of the page layout but it is not clear to me how I will make the print view call the new layout. If anyone could clarify this or point met in the right direction, I would be most grateful. Regards, Paul
2006 Jul 06
6
Class variables in templates/layouts
I''m having problems with class variables.. I have a class: class Content::ApplicantsController < ApplicationController layout "mylayout" @@tab = "mystring" [... the rest is standard scaffold-created stuff ...] and a layout (mylayout.rhtml): [...] <title><%= @@tab.capitalize %></title> [...] And I keep getting this error: uninitialized class variable @@tab in ActionView::Base::CompiledTemp...
2006 Dec 28
0
Localization using inheritance
Hi! I''m trying to implement localization using inheritance, i.e.: class ParentController < ApplicationController layout "mylayout" def initialize #do something end def index #do something end def search #do something end # ... end Controller do his job and render page using "mylayout" and views from "/view/parent" folder. After that, I implemented another controller: c...
2006 May 03
3
Graceful degrading AJAX show/hide
Ok i''ve done a bit of hunting around and I can''t find much documentation on how ensure an ajax call through an rjs file degrades with javascript off. Essentially, if javascript is off, I want to refresh the page and pass a variable from the controller to the page the user is on. Not use the rjs file. At the moment i have this: <%= link_to_remote("Advanced Search",
2006 Jul 25
6
DRY question (newbie)
Say i want to include the same chunck of text (a menu on a webpage for example) on each page. Is there a method by which I can save the HTML in a text file and call it up later? Is there a better way? I know ruby has "puts" but i can''t use that b/c it does not work with my webhost (dreamhost.com) Any suggestions? -- Posted via http://www.ruby-forum.com/.
2012 Jul 09
2
mfrow and centering plots when there's an odd number
Let me start with an example: par(mfrow=c(2,3)) for (i in 1:5){ x = rnorm(100) y = .5*x + rnorm(100, 0, sqrt(1-.5^2)) plot(x,y) } Note that there's five plots and six spaces for those plots via mfrow, leaving one row empty. Is there a way to have the bottom two plots centered? I think it looks weird to have them left-justified. Thanks in advance for the help! -- Dustin Fife PhD
2004 Jul 21
2
RE: Comparison of correlation coefficients - Details
Dear all I apologize for cross-posting, but first it is accepted custom to thank the repliers and give a summary, and second I have still the feeling that this problem might be a general statistical problem and not necessarily related to microarrays only, but I might be wrong. First, I want to thank Robert Gentleman, Mark Kimpel and Mark Reiners for their kind replies. Robert Gentleman kindly
2013 Mar 29
28
[Bug 62914] New: ZaphodHeads doesn't work after upgrading to xorg 1.14
https://bugs.freedesktop.org/show_bug.cgi?id=62914 Priority: medium Bug ID: 62914 Assignee: nouveau at lists.freedesktop.org Summary: ZaphodHeads doesn't work after upgrading to xorg 1.14 QA Contact: xorg-team at lists.x.org Severity: critical Classification: Unclassified OS: Linux (All) Reporter: