similar to: Find By ID

Displaying 20 results from an estimated 2000 matches similar to: "Find By ID"

2006 May 11
6
ActiveRecord associations
Can someone clarify this for me? Suppose I have two tables like: class Company < ActiveRecord::Base belongs_to :category end class Category < ActiveRecord::Base has_many :companies end I understand that the belongs_to causes related companies to be read from the db when I ask for a category. I suspect SQL something like select * from categories, companies where category.id
2006 Jan 08
2
sorting issue
I''ve got the following setup: category (hm) <-> (bt) activity An activity has an amount, date, location, note, and category. I''m sorting my activities table by category_id (foreign key in activity), but how do I sort it by category_name instead? Basically I just need category_name in the result set. Here''s what I have now: @all = Activity.find(:all, :order
2013 Nov 10
3
accepts_nested_attributes_for how, example
I have following tables with following models: users(id, role_id) *has_many :entries* categories(id, category_name) *has_many :entries* entries(id, category_id, user_id) *belongs_to :user, belongs_to :category, has_one :storage* storages(id, title, content, entry_id)* belongs_to :entry*, *has_one :vote* votes(id, count, storage_id) *belongs_to :storage* Now,
2005 Jul 25
2
acts_as_tree and traversing parent/child relationships
I am working on an Rails application that uses a pretty complex category structure through out the site. I have defined a table to house all the info and a FK to reference parents within the table CREATE TABLE categories ( id int(11) NOT NULL auto_increment, name varchar(50) NOT NULL, parent_id int(11) default NULL, constraint fk_category_id foreign key (category_id) references
2006 Jan 02
6
Paginate with joins messing with id
Hi all, Best wishes for the new year! :'') I''m very new to Ruby and Rails, and I ran into a problem with the "paginate" function. When I use the following method to get a number of forum topics based on a category name passed via the URI: @topic_pages, @topics = paginate :topics, :joins => "INNER JOIN categories ON
2006 Mar 12
11
HABTM selection conditions
Hi, I am currently trying to learn RoR and there is something I cannot figure out. I have two models: Article and Category, that are HABTM-linked. Everything works fine if I want to select all articles corresponding to a category, with something like @articles = @category.find(@params[:id]).articles However, I have a ''published'' field in my ''articles''
2006 Jul 07
9
Search on data accross many tables, linked by belongs_to
I am using Ferret and acts_as_ferret, as my search back-end for my Rails project. I have a question about using acts_as_ferret on a main table that is linked to other tables by foreign keys. Is there a way to include the information linked by the belongs_to keyword in the search results ? As an example, let''s say I have a main table ''posts'':
2012 Jan 13
2
function to replace values doesn't work on vectors
I've got a numeric vector with values ranging from 1 to 5, I would like to catagorize these values like this: 1 becomes catagory 1 3 becomes catagory 3 And everything else in catagory 2. The simple function I wrote beneath works for single numeric data, but for some reason I am unable to feed it vectors. Any help would be appreciated, as I'm fairly new to R. -- View this message in
2006 Apr 09
1
select helper question
Hi there, I try to develop a medical application using ruby on rails. There are many categories which can contain subcategories. I defined the model like this: class Category < ActiveRecord::Base has_and_belongs_to_many :notes belongs_to :parent_category, :class_name=>"Category", :foreign_key=>"category_id" has_many :sub_categories,
2020 Mar 22
1
new installation Samba AD - dnsupdate fail
Hello Wau i dont know bevor that Debian 10 running with a so old Samba Version, yes today i have download 4.12 the source Was quick compiled and installed, nice. I fighting with Kerberos..... or will this running when AD are up and running? root at AD:/# cat /etc/krb5.conf [logging] Default = FILE:/var/log/krb5.log kdc = FILE:/var/log/krb5Kdc.log admin_server =
2002 May 09
4
Samba wins eWeek and PC Magazine "Innovation in Infrastructure" (i3) award for best Enterprise Software !
Hi all, I was in Las Vegas yesterday accepting an award from eWeek and PC Magazine on behalf of Samba for the Innovation in Infrastructure Award in the "Enterprise Software" catagory ! The award was sepcifically for Samba 2.2.2, and we beat out Sun Microsystems Java 2 Platform Standard Edition Version 1.4 and Bea Systems WebLogic Server 7.0 for the award, so I'm stunned that we
2002 May 09
4
Samba wins eWeek and PC Magazine "Innovation in Infrastructure" (i3) award for best Enterprise Software !
Hi all, I was in Las Vegas yesterday accepting an award from eWeek and PC Magazine on behalf of Samba for the Innovation in Infrastructure Award in the "Enterprise Software" catagory ! The award was sepcifically for Samba 2.2.2, and we beat out Sun Microsystems Java 2 Platform Standard Edition Version 1.4 and Bea Systems WebLogic Server 7.0 for the award, so I'm stunned that we
2005 Oct 10
11
Samba creating multiple isntances of the deamon
(2005.10.10, 14:25) I am running Samba 3.0.14a-2 on Fedora 4. I have no problem seeing the Linux file system from any of the Windows (2000, SP4) computers attached to the network. The problem is that smbd processes are created for no apparent reason and never die. I noticed this when the computer had been up for about three days and there were some 600 active smbd processes! What could be the
2006 Apr 21
6
How access to the tables whitout a model
i have a table called Products whit a model product, but in the view i need show the category od the product, but whitout a model of categories... -- Posted via http://www.ruby-forum.com/.
2006 Jul 28
11
Forum
Im making forum and i have problem with paths. Here is code: http://pastie.caboo.se/6389 With this code, it works. But its a bit weird to use so many paths function. For every path i need to make new function. So can you suggest me something. Tables are like here: http://wiki.rubyonrails.com/rails/pages/ForumExample -- Posted via http://www.ruby-forum.com/.
2007 Dec 06
3
Please help me rate vnc, rdesktop, and freenx
I have been dragging my feet on remote display, and have just gotten VNC going to have SOMETHING to move off the start line. But I need the 'best' for different situations, so I want to rate them. 1 to 3 where 1 is the 'best' for the catagory and 3 the loser. VNC RDESKTOP FREENX Server memory Server cpu client memory client cpu bandwidth
2018 Mar 19
2
[gsoc2018] Where's the source for clang-doc
Hi I'm interested in working on clang as a gsoc project. It's under the catagory "Clang Tools Extra" [here](http://llvm.org/OpenProjects.html#doc-html-generator), but I can't seem to find it's source anywhere. Not even at the llvm site [documentation](https://clang.llvm.org/extra/clang-doc.html). It isn't on github and google is no help either in this case. Does
2006 Jul 18
2
Turn element hidden by default (ajax question)
(this is my first post on the ruby forum. If this is not the right place for this type of question please let me know). Ajax question I have a checkbox that toggles the visibility of another element (a text field) with the code: --- <p><label for="checkbox">Appear!</label> <%= check_box :object_name, :method, :onClick =>
2009 Apr 11
9
[Bug 21124] New: nouveau: fonts "chipped" on NV44
http://bugs.freedesktop.org/show_bug.cgi?id=21124 Summary: nouveau: fonts "chipped" on NV44 Product: xorg Version: git Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: Driver/nouveau AssignedTo: nouveau at lists.freedesktop.org
2008 Jun 10
5
Rails params parsing bug?
I have a form that sends the following query string to my Rails controller: transaxion[category_association_attributes][][category_id]=2& transaxion[category_association_attributes][][amount]=12& transaxion[category_association_attributes][][category_id]=1& transaxion[category_association_attributes][][amount]=8 But ActionController parses it as: