similar to: Associating a query with a active record class

Displaying 20 results from an estimated 40000 matches similar to: "Associating a query with a active record class"

2006 Jan 30
4
What is supposed to happen when you run dispatch.fcgi?
I''ve seen a number of posts where someone says, "What happens if you just run dispatch.fcgi directly?" Every time I do it, I get a "500: internal server error" message. I was just curious if that''s what''s expected running it directly. I assume so, because my apps all work fine, but that''s always bugged me. Pat
2006 Feb 07
2
validates_uniqueness_of case Sensitive
Is there a option to make validates_uniqueness_of Case Sensitive, if so what is it, if not then how to do it without writing my own function. Regards Suraj
2006 Jan 18
1
Problem with OCI in Apache
My Application runs fine when run on webrick, but throws up database error when run from apache. this is the copy of the FULL TRACE i get /usr/local/lib/ruby/site_ruby/1.8/oci8.rb:131:in `create'' /usr/local/lib/ruby/site_ruby/1.8/oci8.rb:131:in `initialize'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/oci_adapter.rb:515:in
2005 Dec 21
3
How to make a drop-down automatically submit an AJAX form
Hi, I know that to make a dropdown box automatically submit when you change the value, you do this: <select ..... onchange="this.form.submit();"> BUT i''ve got an ajax form, and if i do the above trick, it simply reloads the ajax partial into the whole screen, rather than into the div where it is meant to go. I''ve already got it all working so that if you click
2006 Mar 13
1
active record mysql query help
I''m trying to do a search function on a mysql text column. However i''m running into a problem that i dont know how to get around. I want to be able to find records that match the text column in some way. I know about doing wildcard searches with % characters but i need to do this in a backwards kind of way. I want to find records that will match some part (or all) of the
2011 Dec 27
1
sub query issue with active record.
i can manage the MySQL queries into active record.but in some cases basically with sub-queries.i didn''t get the correct output. here when i trying to change the MySQL queries into active-record. *MySQL Query* *select count(*) from ( SELECT transactions.loyalty_id FROM transactions JOIN loyalties ON (transactions.loyalty_id = loyalties.id) where loyalties.created_at >
2006 Nov 04
2
sql query in active record
hi all, if i want to write a query select * from a,b where a.b_id=b.id in active record using joins,condition how can i write that in docs i found for conditions you do by giving "?" and then the parameter eg. a.b_id=? but it takes b.id as string i.e a.b_id=''b.id'' i dont want that any suggestions thanks in advance regards gaurav -------------- next
2010 Jun 16
2
class methods from module where active rec is involved
I have a module as shown below and when I extend an active record to use it, I can not access the primary_key method. In a simple test program using a similar approach where active record is not involved, access to the class methods seems to work ok. What can I do to make this work or so that I can access the class methods ? ################################## require
2006 Mar 07
13
Active Record - Can''t figure out relationship.
I have the following two tables: create table teams ( id int not null auto_increment, short_name varchar(12) not null, long_name varchar(50) not null, logo varchar(20) not null, primary key (id) ); create table rounds ( id int not null auto_increment, home_team_id int not null, away_team_id int
2003 Nov 15
3
ctokens vs tokens - HTB.
Hi, One more of those ... 1) what is a ctoken with regard to HTB? Does the ''c'' stand for ceil and if so how is it different from tokens? 2) Is the difference, only in the generation of these tokens? 3) Would the ctokens and token be treated equally once borrowed? Kindly help. Thank you. Regards, suraj. __________________________________ Do you Yahoo!? Protect your
2011 Aug 13
2
[LLVMdev] associating id with opcodes
Hi Is there a way to associate additional info with every opcode like an id either through the td files or when building an instruction ? thanks shrey
2012 Jul 08
3
Help in Optimization of a function
guRus! I have a function f = exp(x^2-y+(1/z)) Also, x can take values from 1 to 37, y from 2 to 20 and Z from -13 to 51. How can I find the maximum of f using any of the optimization functions please? Is there a way to store the possible values of x, y and Z in a single variable like in a List or in a multi-dimensional array? Thanks for your help Raghu [[alternative HTML version deleted]]
2011 Feb 19
2
Active Record Query
A course has many lessons and a lesson has many topics. A topic can have a recipe or vice versa, a recipe has many topics (optional). I need to come up with the most efficient way of querying the database to find those topics belonging to a course (via lessons of course) which have a recipe (in other words recipe_id is not null for this topic record). Simple but challenging :) Thanks for your
2016 Aug 11
2
receiving and associating emails to single a/c
Hi,Looking for advice.Scenario: we have a dmz mta that currently redirects received emails for a selection of email domains to specific internal ms exchange servers.?We want this mta to redirect incoming customer emails directed to a set of email addresses numbering about 30, to a dovecot server and associate these emails to a single dovecot user account so that a contact Centre platform can pull
2012 May 21
4
Rails developer required.
If you are experienced rails developer please let me know. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2006 Mar 16
1
beginner question on active record relationships
say I have the following: # user table # - id # - username # - password class User < ActiveRecord::Base has_many :items end # item table # - id # - user_id # - name class Item < ActiveRecord::Base belongs_to :user end What is the correct way for creating a new item instance with relationships in place (assuming the current user is available in the current_user instance)? Do you
2006 Sep 28
1
[Newbie] Trying to use Inflections in a non active record class
Hi Sorry if this is too silly to ask. I did RTFM and didn''t find anything obvious. I have a helper class for my controller which needs to singularize words. I need to access methods in the ActiveSupport/CoreExtensions/String/Inflections class. Doing a require ''ActiveSupport/CoreExtensions/String/Inflections'' fails. How do I add this specific class to a helper class
2011 Sep 29
1
documenting a behavior of adding named item to a list
Folks, Per a post to StackOverflow, I'm looking for an opinion on whether something should be documented: When adding a named item to a list, its guaranteed that the item will be added to the end of the list. SO post: http://stackoverflow.com/questions/7599349/adding-named-item-to-list-guaranteed-to-append-to-end-of-list/7599610#7599610 This is my first email to r-devel, so I hope this is
2013 Nov 04
1
Access denied when associating a driver with a printer
Hi, I'm trying to get point & print working against a 4.0.10 Samba server (using the sernet packages if that's relevant). I have the printer itself setup and I've uploaded the driver, but associating the uploaded driver with the printer causes Windows to give an error: "Printer settings could not be saved. Access is denied". I'm seeing the same symptoms on XP and
2011 Aug 14
0
[LLVMdev] associating id with opcodes
On Aug 13, 2011, at 11:04 AM, shreyas krishnan wrote: > Hi > Is there a way to associate additional info with every opcode > like an id either through the td files or when building an instruction > ? > The only way I can think of is metadata on the LLVM IR instruction: http://llvm.org/docs/LangRef.html#metadata -bw