Displaying 20 results from an estimated 160 matches similar to: "decorators for models?"
2007 Nov 18
2
Variable inside of another variable
Hi everyone,
I''m building partial and I need to use a variable inside of another
variable name:
I''ve tried like this:
<div class="form_row">
<label for="<%= field %>"><%= field_title || field.humanize %>:</
label>
<%= form.text_field field,
:size => User::field.upcase_SIZE,
2006 Jul 21
1
Partial, Table Layout, Multiple Controllers/Models... DRY?
Hi,
I am almost embarrased to ask this and I am sure it has been answered
previously but the search feature is down on ruby-forum so I am not
finding the answer.
I have several controllers (leads, orders, activities, etc...). I have
a ton of repeated html in each of the views for these controllers. For
example, my list view has the same table/tr/td and for..in type of code
and it just
2009 Aug 04
3
[PATCH server] require at least one vm network if pxe booting
---
src/app/models/vm.rb | 2 ++
src/app/views/vm/_form.rhtml | 23 +++++++++++++++++++++++
2 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/src/app/models/vm.rb b/src/app/models/vm.rb
index 3e0a6fa..9d326ac 100644
--- a/src/app/models/vm.rb
+++ b/src/app/models/vm.rb
@@ -464,6 +464,8 @@ class Vm < ActiveRecord::Base
2009 Jul 24
2
[PATCH server] add collapsable sections to vm form
the vm form is getting cluttered, this patch simply add
collapsable sections to the form, making the 'storage'
and 'network' sections collapsed by default
credit goes to jayg for contributing alot to
this patch in terms of simplification and cleanup
---
src/app/helpers/application_helper.rb | 4 +-
src/app/views/vm/_form.rhtml | 35 ++++++++++++++++++++++----------
2006 Aug 30
3
Dhtml Calendar Engine undefined method popup_calendar
Hi,
I''m trying to use the above engine following the installation here http://dry.4thebusiness.com/DhtmlCalendar.html . The only exception to the install is I downloaded and unzipped the install into the plugins directory from Ruby Forge http://rubyforge.org/projects/dhtmlcalendar/
I''m using Instant Rails and Rails V1.1.6., The engine plugin is also installed
The engine
2006 Nov 09
1
Howto compile the kde decorator?
Hello,
I own a NVidia GF488Go and therefor I tried to give aiglx+compiz a
try, and it seems to work great - impressive :-)
However the problem I experience is that I am unable to compile any of
the "window decorators". I installed kde-devel libs + dependencies,
gtk+-devel dependencies - however I don't have gnome nore
gnome-develop packages installed and I build with gconf
2006 Jun 06
0
Scaffolding Extension - Polimorphic Associations
When I try to use it with polimorphic associations I get the following
error
In browse action:
activesupport-1.3.1/lib/active_support/dependencies.rb:100:in
`const_missing'': uninitialized constant Privable
activerecord-1.14.2/lib/active_record/base.rb:1246:in `compute_type''
activesupport-1.3.1/lib/active_support/dependencies.rb:131:in
`const_missing''
2009 Jun 19
0
[PATCH server] add toggable sections to vm form
the vm form is getting cluttered, this patch simply add
collapsable sections to the form, making the 'resources'
and 'network' sections collapsed by default
- icon added
- methods added to the js
- reorganization / cleanup in rhtml, indentation changes,
no functionality or content changes
---
src/app/views/vm/_form.rhtml | 109
2010 Sep 03
1
[PATCH] Adding some control over usages in the network creation/edition form
Signed-off-by: Simon COURTOIS <scourtois at linagora.com>
---
src/app/controllers/usages_controller.rb | 13 +++++++
src/app/models/usage.rb | 2 +-
src/app/services/usage_service.rb | 23 ++++++++++++
src/app/views/network/_form.rhtml | 56 +++++++++++++++++++++++++++++-
src/config/routes.rb | 1 +
2007 Jun 07
1
What about splitting the gtk-window-decorator ?!
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Yesterday I sent a patch (http://paste.ubuntu-nl.org/24252/) against
the latest compiz ubuntu gutsy source package to Amaranth, to make
compiz compile (and package, of course) the gtk-window-decorator in
two ways:
1) as gtk-window-decorator (= compiz-gtk package) using these
configuration parameters:
--disable-gnome \
2006 Jan 12
3
Asterisk Prepaid Solution
Hi All,
Any solution on how I can implement prepaid billing on asterisk?
But not the calling card type, just a simple Custome rwill buy credit,
consume then buy again.
Also, is there a solution for that when you combine asterisk with ser?
Regards,
Ronald
2007 May 15
2
kde-window-decorator crashes
BAADCAAHDwEHEAEKFwESKwIXNQIaOwIcQQIgSQIpXwM4gAQ8igU/kAVAkwVB
lAVClwVCmAVFngVJpgZKqQZLrQZPtQZQtgZRuQYAAAAAAQB1lW3cAAAAAXRS
TlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAALiMAAC4jAXilP3YAAAAH
dElNRQfXAxgNAiAQYlKOAAAAHXRFWHRDb21tZW50AENyZWF0ZWQgd2l0aCBU
aGUgR0lNUO9kJW4AAADMSURBVEjHzZbJEsMwCEPpvjfdW9T//89OkktqVxgy
PpSjzLPHQeCIZKGDkGJoFsF0E1EW0XyCaFVA/fl3RvzaTfW6nPTaaQqWP1TP
2006 Jun 28
6
select_tag
in my controller
@cursos = Curso.find_all
in my view i''m trying to do a select_tag with the results @cursos, using
a helper
select_tag "name" options_for_select(@cursos) --------> not works
select_tag "name" @cursos --------> not works
how to do it, using the helper?
tks
--
Posted via http://www.ruby-forum.com/.
2009 Jun 19
1
[PATCH server] add collapsable sections to vm form
the vm form is getting cluttered, this patch simply add
collapsable sections to the form, making the 'storage'
and 'network' sections collapsed by default
---
src/app/helpers/application_helper.rb | 9 +++++
src/app/views/vm/_form.rhtml | 55 +++++++++++++++++++++++++--------
src/public/javascripts/ovirt.js | 25 +++++++++++++++
2006 May 10
12
how best to implement lookup table?
Hi all -
I''d like to implement a lookup table in my app that contains some
reference data, just some status codes and their descriptions. What''s
the most appropriate approach according to the "rails way" of doing
things? Would I just implement a has_many relationship? Let''s say
these are Order status codes, would the StatusCode have many Orders?
This
2010 Nov 13
0
Upcoming structural changes to compiz core - HEADS UP
Hi Everyone,
I'm going to make some big structural cleanups to core which is likely
to affect everyone here, but I believe is for the better, so I am
posting this mail now to get some feedback and make sure that we don't
tread on anyone's toes when I merge all of this stuff.
1st Change: Decorators are going in their own repo
=========================================
The decorators
2006 Sep 22
1
gnome-window-decorator -> gtk-window-decorator and some restructuring
The current name of gnome-window-decorator is wrong. There's nothing
gnome specific in that code. I'll go a head and change the name to
gtk-window-decorator later today.
I'm also going to split the gnome configure option into a gtk and a
gnome option as the only gnome specific code that exist in the tree is
the compiz-window-manager module which is used to integrate with the
gnome
2008 Jan 21
1
Collaboration made simple with bracket notation
What do people think of this?
http://www.humanized.com/weblog/2006/06/30/collaboration_made_simple_with_bracket_notation/
----------------------------------------------------------------------
Find out how you can get spam free email.
http://www.bluebottle.com/tag/3
2008 Mar 20
0
gtk-window-decorator - unneeded MAX ()
Hi, it seems to me that line gtk-window-decorator.c:3324 could be written as
"top_width = w;" as w will always me the maximum, due to line 3319.
3319 if (w < ICON_SPACE + d->button_width)
3320 return FALSE;
3321
3322 top_width = name_width + d->button_width + ICON_SPACE;
3323 if (w < top_width)
3324 top_width = MAX (ICON_SPACE +
2006 Dec 05
2
gtk-window-decorator segfault?
With current git, gtk-window-decorator quit when kde start :(
Another way to make it quit:
dcop kicker kicker restart => gtk-window-decorator quit....
Cedric