Displaying 20 results from an estimated 1000 matches similar to: "Controller/View Organization (Newbie Question)"
2006 Feb 19
0
creating a model that has other models as elements
Say I have the following three tables:
dogs
-------
id (PK)
name
cats
------
id (PK)
name
recipies
-----------
id (PK)
recipie_text
I''ve made a model for each of them: Dog, Cat and Recipie.
Now I want to create a model, Cookoff, that will contain arrays of
Dog, Cat and Recipie objects. There is no associated database table
for Cookoff because it''s merely a container for a
2006 Aug 16
3
AR: column methods?
In a model, it seems that methods for column access are only created
when one column method on an object is accessed. So, how can one
override the default column methods?
For instance:
create_table "dogs", :force => true do |t|
t.column "color", :string
end
create_table "tails", :force => true do |t|
t.column "dog_id", :integer,
2006 Feb 06
4
Relationship Question (STI)
My girlfriend and I have been dating for two years, and she just told me she
has an STI...
Actually, I currently have three different models, like: Dog, Whale, Monkey
They all have some similar attributes, but, they are unique enough to
break into their own models. I could use STI, but I think the table would
just have too many columns.
Now, I wanted to let the Dog''s, Whale''s
2006 Mar 29
1
View sharing between controllers?
Good evening all....
My first Rails project is flourishing, thanks in no small part to
good advice I received from members of this mailing list (thanks!).
However, I''ve run into an interesting spot on which I''d really
appreciate your advice.
My app''s main controller currently has about a dozen views,
presenting various information about the models. This
2006 Aug 16
1
Simple Code Organization Question
Hi all,
This is just a quick question about organization of code. I have an app
that is checking domain information via the Yahoo and Google APIs. I
have a model, Domain, that represents the domain I am checking.
My question is where would you recommend I put the methods that access
the APIs, in the model or the controller?
Thanks
Peer
--
Posted via http://www.ruby-forum.com/.
2006 Jul 17
0
organization of controllers
Hi,
I need some help in wrapping my head around the following problem:
I want to layout a site in a similar manner as http://yoxos.com/
ondemand/. There you hae a tree on the left hand side and details of
the tree-selection in the (lower) middle. You can switch what type of
info should be shown by tabs in the middle.
Here, I have a hierarchical set of keywords. Each keyword is related
to
2006 May 12
2
Logical organization of controllers
I find that many of my controllers have a dozen or more methods and that it
can take a few moments to orient myself when I open a controller I haven''t
looked at in a while. Does anyone have suggestions for organizing methods
in a controller (alphabetical, by function, etc) to increase readability and
scanability?
-------------- next part --------------
An HTML attachment was scrubbed...
2006 Mar 01
0
Rails AJAX scaffold generator question: organization
Rails noobie here.
I''ve gem''ed Richard White''s AJAX scaffold generator, and hooked it up to
one of my tables, did some tweaking, and am very pleased with the ease
of this first test. But my question is how I should incorporate this
into my actual app. In my app, the table I want to use this AJAX on
belongs_to another table. I have one main controller in the app,
2004 May 15
0
Need help for a non-profit organization
WPLink is a non-profit organization that want to help a group of amateur
radio people and other poor people that want to learn PHP or mySQL.
WPLink will be going through some updates in the next months. For the
upgrade to happen, we need to raise a certain amount of money, since we
personally cannot and do not have the necessary funding.
I have all hardware without this items, that badly needs
2018 Feb 12
0
Fwd: GSoC 2018: Xapian Search Engine Library has been accepted as a mentor organization!
Good news everybody:
---------- Forwarded message ----------
From: Google Summer of Code <summerofcode-noreply at google.com>
Date: 13 February 2018 at 06:11
Subject: GSoC 2018: Xapian Search Engine Library has been accepted as a mentor organization!
[image: Google Summer of Code]
Congratulations! Xapian Search Engine Library has been selected as a Google
Summer of Code 2018 mentor
2008 May 20
0
[LLVMdev] Optimization passes organization and tradeoffs
On Tue, May 20, 2008 at 2:28 PM, Chris Lattner <clattner at apple.com> wrote:
>
> On May 20, 2008, at 8:57 AM, David Greene wrote:
>
>> On Tuesday 20 May 2008 07:03, Nicolas Capens wrote:
>>
>>> 1) Does ScalarReplAggregates totally superscede
>>> PromoteMemoryToRegister? I
>>
>> Nope, they are different. Mem2Reg is really important if you
2008 May 21
0
[LLVMdev] Optimization passes organization and tradeoffs
Hi David,
Thanks for the info, but I'm not using any of the command line options. I'm
dynamically generating code at run-time. So unless I'm missing some way to
set these command line options at run-time I think I need another API for
controlling register allocation and scheduling.
I was also under the impression that linear scan register allocation is
quite cheap, faster than graph
2008 May 21
0
[LLVMdev] Optimization passes organization and tradeoffs
On Wednesday 21 May 2008 15:48, Chris Lattner wrote:
> > What's the difference between GVN and GCSE, if they both perform common
> > subexpression elimination?
>
> GVN does more, and is a better algorithm. GCSE is basically deprecated
> and should be removed at some point.
Er...waitaminute. Maybe there's something I don't fully grok about GVN,
but in general,
2013 Jan 17
0
[LLVMdev] Code Organization
I'm trying to port some code to TOT in order to incorporate it into the
llvm.org sources. I've got a question about where it should live.
This code provides some different models of the target hardware that are
useful at multiple stages of optimization (ll, MachineInstr, mc, etc.).
I don't believe the MC level is available to the higher-level passes.
Should this stuff live in the
2013 Mar 31
1
[LLVMdev] Wrong URL for organization on LLVM Users page
Hey,
I was recently looking at this page : http://llvm.org/Users.html Under the
Educational Users -> Organizations, Indian Institute Of Technology has been
listed whose url is http://www.cse.iitb.ac.in/ instead of
http://www.cse.iitm.ac.in/ (as has been put there). Kindly fix this small
error.
Thanks,
Saurabh Anand
Indian Institute Of Technology, Delhi
-------------- next part --------------
2008 Mar 25
2
How about bringing some organization to the forums?
Just was wondering why this is all just one big thread? Why isn't this forum broken down into categories such as that on the AppDB?
Applications
Educational
Games
Multimedia
Networking & Communication
Programming
Utilities
Seems like it would look a little more orderly and easier to sort peoples questions and expertise. Just a thought to the moderators[/list]
2003 Jun 19
1
Winbind and Organization Unit
I'm using Samba 2.2.8a with winbind on a Redhat System
(kernel 2.4.20 + acl) within a W2K Domain compiled
with the good options (I hope)
Winbind can authentify users when the user is a Global
User but not when he's in an Organization Unit.
I need that winbind is able to authentify OU's users.
Normally I've access only to my OU so how to tell to
winbind to check only in a
2004 Aug 06
0
directory organization
Hello all,
I've collected my thoughts on directory organization and am presenting
them here for your comments.
This does not address what kinds of data are stored in the directory
(except for the obvious things needed to fulfill these requirements)
nor does it really address how the directory is maintained, implemented
or accessed.
This is meant to be a general overview of what our how our
2015 May 28
0
Statistician for The Food and Agriculture Organization of the UN in Rome, Italy
Job Description:
The Food and Agriculture Organization of the United Nations based in
Rome is seeking a talented statistician to join the Statistics division.
We value people with technical skills, and in particular individuals who
are able to translate numbers to actions and to make an impact on the world.
In this role, you will be:
-?? Developing R methods in collaboration with FAO
2012 Aug 06
1
OO code organization
Greetings,
I am using S4 classes and the code is organized by putting each class into a separate source file
in a separate folder:
In Folder base/base.R: defines class "base" and does
setGeneric("showSelf",
function(this) standardGeneric("showSelf")
)
setMethod("showSelf",
signature(this="base"),
definition=
function(this){ ... }
)