Displaying 20 results from an estimated 200 matches similar to: "Optional Include Relationship"
2006 Jan 09
1
Newbie Question. I''m dumb with forms and foreign keys
For some reason I am just not able to get this.
I am trying to setup an organizational hierarchy, so I have a
organization which works fine. From there I want to be able to define
new divisions, departments, areas, etc.
For creating a Division, my original thought was to pass the
organization''s id to the new organization unit form, and then do a
Division.new(:organization_id =>
2006 Nov 16
2
ssh-decrypt
Hi,
One of the problems we are facing is secure storage of
passwords (database, bestcrypt, other
applications/systems,
) and availability within
users' scripts (perl, python, ...) or applications
(Java, C,
). I'm sure that there are quite a few
people who are facing the same issue and there are
quite a few home made solutions, such as password
obfuscators and/or solutions based on the
2014 Mar 12
1
Documentation SIG
Hey all -
Just curious to find out if there's any activity with the documentation
SIG? I'd like to join. One thing i've noticed is that it seems like
documentation for CentOS ends at 5. While the documentation is more or
less mirrored from RedHat's site, this can be confusing to beginners since
they may get the impression that documentation isn't there.
That being said, i
2006 Feb 28
8
HABTM count table
Hello,
I have a question about HABTM and counting records.
I have these models
class Sort < ActiveRecord::Base
has_and_belongs_to_many :reports
end
class Report < ActiveRecord::Base
has_and_belongs_to_many :region
has_and_belongs_to_many :subjects
has_and_belongs_to_many :sorts
end
And i would like to get a count like
@sort.reports.count
The problem is get this query:
2006 Mar 05
8
Model Inheritance, Mixins and Database design
I''m trying to understand how best to use inheritance and wonder if
Rail''s Single Table Inheritance model too restricting.
I have a model Companies who provide 1+ Services (HABTM relationship).
I assume the best way to represent this is with a series of child models
representing each type of service : ServiceType < Company.
I want to return lists of companys for each
2007 Sep 28
4
RSpec + EdgeRails on Windows
I recently post on my blog about setting up a Rails environment with RSpec
in Windows, and someone left a comment saying that it doesn''t work in
EdgeRails. I so I played around with it a bit and was able to confirm that
none RSpec appears broken on EdgeRails. I''ll post the various error messages
I received below. I''m not expecting any sort of patch or something for this
2006 Feb 23
5
sortable_list added to by AJAX question
I have a working sortable_list that is added to by AJAX. The problem is
that when a new item is added, it''s not sortable. I found a post on
scriptaculous using behaviour.js to refresh the DOM when an item is
added, but I can''t figure out how to do it with Rails.
To test the behaviour method, I used this:
var myrules={
''div#steps ul'' :
2006 Feb 28
4
How to use Ruby on Rails on OS X
Direct from the horse''s mouth. :-)
http://developer.apple.com/tools/rubyonrails.html
Found via:
http://digg.com/technology/Apple_makes_a_concise_Ruby_on_Rails_tutorial
--
-- Tom Mornini
2006 Feb 26
5
Subversion | CVS | Sourceforge | OS X : Tutorials
Can anyone suggest some step-by-step tutorials for using CVS or
Subversion on Sourceforge with OS X ?
I''m a new to RoR and creating a Sourceforge project was recommended as a
way of working and learning from/with others.
But I can''t get over the hurdle of transferring what I''ve already build
to csv.sourceforge or subversion.sourceforge. All my attempts generate
2005 Dec 21
7
Are there any disadvantages to using locomotive
Hi:
I had some issues and so switched to locomotive. I find it awesome. 1
click and its done.
My question - what disadvantages are there, if any? What do I lose by
using such a convenient solution.
speculation as well as facts are welcome but please define which you
are putting forwards.
Thanks in advance,
bruce
2006 Jan 13
7
installing rails in vendor
Does a rails project automatically switch to using a "local" copy of
the rails libs if it exists in the vendor directory, or do I need to
tweak something else to pick it up?
Thanks!
-Theo
2006 Mar 13
8
Nested find(:all, :include => ) statements
Is there a way for me to do:
OrderItem.find(:all, :include => [:user, :product => [:supplier]]
So I don''t have a supplier_id on my order_item, but have it on my
product, which is part of order_item.
Joerg
--
Posted via http://www.ruby-forum.com/.
2006 Mar 29
5
EdgeRails: "undefined method `weight'' for #<Hash:
Hi all,
I was playing with the sample project found on the Wiki at
http://wiki.rubyonrails.com/rails/pages/HowToIntegrateFerretWithRails
, and everything was working fine, ... till I moved to EdgeRails :
undefined method `weight'' for #<Hash:0x22c7150>
(full error thread below)
Any idea?
Alain
2006 Feb 28
4
multiple keys table
probablly a newbie question:
Rails does not support a table with multiple keys ???
it seems that the ActiveRecord set_primary_key method can only set the
column name... (hope i''m wrong there)
example:
table A - P.K id, string name
table B - P.K id, string name
table C - P.K a_id and b_id, both are also foreign keys.
Thanks,
Amir.
--
Posted via http://www.ruby-forum.com/.
2006 Mar 05
9
Rails Development on a Mac Mini?
How many people out there are doing Rails development on a Mac Mini? I''ve
been eyeing up the MacBook as well as the new MacMini trying to decide if I
want to splurge. I''ve been doing very little Rails development thus far
which makes the investment a little hard to justify. The Free Mini Mac (
http://minimacs.freepay.com/?r=16778073) offer seems like the best route but
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 16
6
Newbie-Question
Hi.
I''ve just started using Ruby on Rails.
Now I''ve got my first problem.
I generated a new migration ''add_price'' and get the message:
2005 Dec 02
8
UserEngine: stack level too deep
Hi,
I''m trying to get the UserEngine running.
I have installed the LoginEngine, added the essential lines to
environment.rb / application.rb and application_helper.rb.
Worked fine.
Then I did the same with the UserEngine and when trying to set up the
db:
rake engine_migrate ENGINE=user
I get:
Migrating engine ''user_engine''
rake aborted!
stack level too deep
But...
2006 Mar 09
15
open source editor
does anyone know of a good place to find an open source / freeware text
editor?
--
Posted via http://www.ruby-forum.com/.
2006 Feb 11
6
Rails 1.1?
I have a few very basic questions.
Is anyone using rails 1.1?
How/Where can I get Rails 1.1 (I don''t see it on RubyonRails.org?
What are the issues involved in moving from Rails 1.0 to Rails 1.1?
If I move to Rails 1.1, can I downgrade? Just curious.
Thank you very much for your assistance.
Frank
---------------------------------
Yahoo! Mail
Use Photomail