Displaying 13 results from an estimated 13 matches similar to: "Partial, Table Layout, Multiple Controllers/Models... DRY?"
2008 Jul 09
1
outlining symbol in legend with blackline
# I would like to outline the squares in the legend with a black line. Does
anyone know how to do this?
x.t <- structure(c(5987.387, 4354.516, 3685.789, 6478.592, 5924.315,
NA, 8386, 5559.468, NA, 4651.273, 3967.5, NA, 4339.167, 5053.56,
NA, 4631.978, 4808.694, NA, 5217.306, 4017.632, NA, 5846.903,
3969.883, NA, 3867.825, 3910.236, NA, 3886.434, 3782.094, NA,
3959.668, 3961.286, NA, 3848.853,
2006 Feb 10
14
dynarch calendar and calendar helper usage
I am playing around with this and reference this wiki from RonR site...
http://wiki.rubyonrails.org/rails/pages/CalendarHelper
The error I am getting is:
NameError in Placements#list
undefined local variable or method `date_format'' for
#<PlacementsController:0xb78f9ef4>
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace
2019 Nov 16
2
[Bugzilla] Is Bugzilla down?
Hi,
It seems that Bugzilla (https://bugs.llvm.org/) is down, when I using
the search engine.
--
Best Regards,
Xing
2006 Feb 14
6
Multiple associations to the same class
Hi,
I cannot seem to create associations like this:
class Project < ActiveRecord::Base
belongs_to :manager, :class_name => ''User'', :foreign_key => ''manager''
belongs_to :liaison, :class_name => ''User'', :foreign_key => ''liaison''
end
p = Project.new
p.manager
=> 1
trying to retrieve associated objects
2006 Aug 09
2
Link to most recent
Greetings all,
I have a side panel in my app that needs to have a link to the most recent 4
or 5 items in a table. How do I create this link?
For example, I have a controller named widgets, and I want to create a link
to :controller => "widgets", :action => "show", and then the most recent id.
I want the text link to be the name of the widget.
Any ideas? Obviously,
2009 Oct 24
6
Working with ListCtrl and ListItem
Hi List,
I''m trying to get my ListCtrl to work. Currently I''ve managed to fill
my ListCtrl with items, but I think it''s not the most beautiful way:
class MyList < Wx::ListCtrl
def initialize(parent, *args)
super(parent, :style => Wx::LC_REPORT|LC_HRULES )
create_layout
fill_list
end
def create_layout
self.insert_column(0, "Name")
2006 Mar 07
1
decorators for models?
Hi!
I''m thinking of implementing datagrid like functionality for showing
data (models) in grids so that I don''t have to re-invent the
view/controller for each table I need. There are number of parameters
that need to be customizable: column titles, row style depending on the
data (i.e. showing all rows with balance<0 in red), is column sortable,
sort-algorithm etc.
To
2008 Jul 15
9
Beginner Question.
I''m just getting into RoR, coming from a long PHP background. So far I
LOVE IT!
I''m hitting a roadblock with updating my mysql database. For
simplicities sake, I have 2 tables and here are the relevant columns.
Table Users
id
name
email
Table Issues
id
createdby
assignedto
reportedby
In my models I have everything mapped properly I believe.
When I try to update the
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
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/.
2006 Mar 20
3
Linking two HTML SELECT''s together
Hi,
How do I link two HTML SELECT''s together. Let''s say for example that I
have a drop-down list with a list of all countries. Once the user
selects one of the countries I would like to make an AJAX call back to
the server to populate the second drop-down list with all of the cities
for that country.
Any ideas on how to go about to do this?
Regards
Jerrie Pelser
--
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
2009 Jun 20
0
AssociationTypeMismatch
Am getting the following error:
Modul(#36555780) expected, got String(#21132310)
After doing a lot of research on the net, i found that i need to pass
on the id field somehow, but i dont really know how to do it.
Following is the model:
---------------------------------
class Modul < ActiveRecord::Base
belongs_to :modulable, :polymorphic => true
end
class Chapter < ActiveRecord::Base