search for: my_layout

Displaying 5 results from an estimated 5 matches for "my_layout".

Did you mean: any_layout
2007 Jul 28
2
specing a call to render :layout => "some_layout"
I''m trying to specify that an action should be rendered with a given layout one particular spec. What I''ve got at the moment is this. it "should render with the grabber layout" do controller.should_receive( :render ).with( :layout => "my_layout" ) do_get end This doesnt work even though this call to render is being executed. render :layout => "my_layout" Firstly I don''t understand why this isn''t working. I''m getting an object inspect with this message at the end expected :render with...
2008 Jun 26
1
Layout() coordinates and drawing lines / segments
...-------------------------------------------------------------- postscript("out.ps", horizontal=FALSE, +width=7.5,height=11.5,pointsize=10, paper = "special" ) opar <- par(omi=c(0.1,0.1,0.1,0.1)) layout_mat = matrix(c(1,2,3),nrow=3,ncol=1,byrow=TRUE) my_layout <- layout(layout_mat,widths=c(1,1,1),heights=c(1,1.5,1.5),respect=FALSE) ----------------------------------------------------------------------------- 2 Questions: How do i find what are the x,y's of the upper margin ? (I've heard of locator() but i don't think i can use it here as...
2008 Jul 11
1
TeachingDemos question: my.symbols() alignment problems in complicated layout
...######################### postscript("test.ps", horizontal=FALSE, width=7.5, height=11.5,pointsize=10, paper = "special" ) library(TeachingDemos) opar <- par(omi=c(0,0.1,0.7,0.1),xpd=T,mar=par()$mar+c(0,-1.5,-1,5)) layout_mat = matrix(c(1,2,3,4),nrow=4,ncol=1,byrow=TRUE) my_layout <- layout(layout_mat,widths=c(1,1,1,1),heights=c(1.0,0.45,1.0,1.2),respect=FALSE) plot(1,1) plot(2,2) plot(3,3) plot(1:100,rep(c(9,1.5,2,8),25)) points(40,4,col="red") points(50,8,col="red") my.symbols(40,4,ms.polygon,n=3,inches=0.2,add=TRUE) my.symbols(40,4,ms.arrows,angle=...
2006 Aug 17
1
Disable rendering of layout using a GET parameter?
Hi all Is there some sort of a built-in possiblity to disable the rendering of the layout using a GET parameter? Something like :url_for :controller => :news, :action => :show, :id => news_item, :layout => false This should construct something like that: /news/show/123&layout=false And automatically the layout wouldn''t be rendered. Is this already built-in, or
2006 Jan 14
14
Javascript/AJAX Debugging
Hello ! I''m trying to implement something similar to the "multiple updates" section of the Web2.0 chapter of the Agile book. I implemented my version, and nothing is happening. No javascript errors, my logs look fine, page is rendered fine... just no Effect.Highlight. Here is the code: views/causes/cause_home/index.rhtml =============== <%= form_remote_tag(:complete =>