Displaying 20 results from an estimated 7000 matches similar to: "Composite Views"
2007 Dec 07
4
strange error on mock proxy
I''m banging my head over this really strange error in a view test when
I run "rake spec". The weird thing is that I don''t get the error when
I run the spec file by itself.
Here is the spec (I know, fixtures are the devil):
describe "/units/new.html.erb here" do
fixtures :units, :accounts, :groups
it_should_behave_like
2009 Feb 25
9
local variables in partials lead to NameError
I know I must be doing something dumb, but I can''t seem to send a
local variable to my partial. The below code leads to the following
error:
NameError in Residential_listings#new
undefined local variable or method `foo'' for #<ActionView::Base:
0x3fb53f8>
I am trying to call the variable ''foo'' in a partial called
_attachment.html.erb, which is nested in
2012 Jan 05
3
composite keys and association
i have two table, comment and post, both have composite keys, and no id
column, comment belongs to post, i follow the instruction of
http://compositekeys.rubyforge.org/, and it seems successfully,
(But i still cant confirm to put require ''rubygems'' and
require ''composite_primary_keys'' on which file ).
I can do the CRUD operation for post,then i want to create
2006 Apr 10
8
Advice on Similar Views with Helpers
I have some embedded tables that form different sections of a view. I
find that I use the same look for certain ones which means I have to
duplicate the same exact table for each section that''s similar.
Is there a way to do.. hmm.. well.. kind of like what a layout does
using @content_for_layout, but for a partial. Does that make any sense
whatsoever? :)
OK so here''s some
2007 Sep 25
21
form_for and partials
I love form_for, but I really hate
<% form_for :person, @person, :url => {...} do |f| %>
...
<%= render :partial => ''form'', :locals => {''f'' => f}
...
<% end %>
I''ve been thinking of instead allowing
<% form_for :person, @person, :url => {...} do |f| %>
...
<%= f.partial ''form''
2006 Mar 06
4
Are views inheritable
Is it possible to use a child model''s controller to impliment it''s
parents view before adding its own output ?
possibly by the use of super ?
_tony
--
Posted via http://www.ruby-forum.com/.
2006 Aug 01
2
Partial Naming Madness
Hi, I am having the following issue with a partial. During initial page
load, I am doing a "render_partial_collect ''foo'', @foos", and all goes
well. Each foo partial makes use of a variable inside called ''foo'' (and
can get foo.id etc).
After all the partials are loaded, I need to :update a div corresponding
to one of the partials (ie re-load the
2007 Jul 19
7
NoMethodError in partial driving me mad
Hello,
i simplified have a news model, a news category model and a news
controller.
my _news.rhtml partial renders a single news entry.
in my controller there are the actions show and show_category.
if the "show" action is called, a single news item is rendered through
my partial with no errors.
if the "show_category" action is called, i get a NoMethodError while
displaying
2005 Apr 06
6
Mimic something like layout on a smaller scale?
I need to add various header and footer dressings around groups of form
fields for GUI goodness, and am wondering if there''s already something out
there that will suit my needs. These headers/footers have special properties
for display(title, help links, etc...). I want to be able to easily take
advantage of the existing HTML helper methods provided for controllers, in a
mini-layout type
2007 Mar 08
2
Composite Primary Keys
Have been looking into using rails but am finding the "Composite
Primary Keys are Bad" thing a tad disturbing (to put it mildly). I
have been working with RDBMS systems for over fifteen years and this
is the first time I have herd the idea questioned. I have cone across
using surrogate keys which mirror the composite key for performance
reasons in VERY big databases but I have never
2006 Jul 30
1
Doubt on composite index
The AWDwR book has the following:
add_index :categories_products, [:product_id, :category_id]
add_index :categories_products, :category_id
The first, composite index actually serves two purposes: it creates an index which can be searched
on both foreign key columns, and with most databases it also creates an
index that enables fast lookup by the product id. The second index then
completes
2013 Apr 05
2
Composite Quantile Regression
Does anyone know of R functions for doing composite quantile regression (Hou
and Yuan Ann Stat 36:1108, 2008)? The paper's authors do not talk about
software in their paper or on their web sites.
Thanks
Frank
-----
Frank Harrell
Department of Biostatistics, Vanderbilt University
--
View this message in context: http://r.789695.n4.nabble.com/Composite-Quantile-Regression-tp4663463.html
2006 Jun 08
1
No rhtml, rxml, or delegate template found
hi ,
i''m having a problem with rendering a partial , the partial is in the
apps/view/polls folder with the name : _antwoorden_user.rhtml
in the view i''m rendering it with
<% if @user %>
<%= render :partial => ''polls/antwoorden_user'', :locals => {:poll =>
@poll, :user => @user} %>
<% else %>
....
gives me the error =>
No
2006 Feb 28
3
Composite Key Support
Right now rails doesn''t support composite keys, that is id1, id2, and
id3 are in the primary key of the table. Does anyone know if this is
being discussed for future versions, or is it pretty much out of scope?
--
Posted via http://www.ruby-forum.com/.
2007 May 18
1
compiz run on DISPLAY :2 error: No composite extension
I can enable compiz on default DISPLAY :0 on gnome on FC6, all
features are OK, but when I set up a DISPLAY :2 with Xnest, try to run
compiz in DISPLAY :2, fail,
Error info:
compiz: No composite extension
I check compiz source code:
if (!XQueryExtension (dpy,
COMPOSITE_NAME,
&d->compositeOpcode,
2006 Apr 03
4
How to fake composite primary keys?
I know ActiveRecord doesn''t support composite primary keys, but I need to use
one, and I need it ASAP. I don''t need any composite foreign keys, luckily;
what I have is a table that stores old versions of rows in another table, so
the composite key is an id + date stamp. Would someone tell me a hack I can
use to support this?
--
View this message in context:
2015 Jul 14
2
[PATCH] avoid build fail without COMPOSITE
Well, I don't pretend to know anything about X, but this is the commit
that added the code in question:
commit 297fd0d0755bda698be1d0b30cc60a41d7673c0b
Author: Dave Airlie <airlied at redhat.com>
Date: Tue Oct 16 16:15:16 2012 +1000
nouveau/dri2: fix pixmap/window offset calcs.
This should fix prime rendering under kwin, and not break it under the
others.
2006 Apr 26
5
Best way to split forms into steps?
I have a form with about 30+ fields, which the client is wanting to
separate into 3 pages/steps - just wondering what is the best way to go
about this, specifically remembering data entered, from one page to
another, and making sure the various bits of data are validated
correclty, error messages outputted etc etc...
is there a best practice method for doing this?
--
Posted via
2015 Jul 14
3
[PATCH] avoid build fail without COMPOSITE
---
src/nouveau_dri2.c | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c
index f22e319..4398559 100644
--- a/src/nouveau_dri2.c
+++ b/src/nouveau_dri2.c
@@ -142,6 +142,7 @@ nouveau_dri2_copy_region2(ScreenPtr pScreen, DrawablePtr pDraw, RegionPtr pRegio
NVPtr pNv = NVPTR(xf86ScreenToScrn(pScreen));
RegionPtr pCopyClip;
2009 Jan 10
5
[Bug 19491] New: S-video & composite output
http://bugs.freedesktop.org/show_bug.cgi?id=19491
Summary: S-video & composite output
Product: xorg
Version: 7.4
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
AssignedTo: nouveau at lists.freedesktop.org
ReportedBy: monnier at