search for: record_id

Displaying 13 results from an estimated 13 matches for "record_id".

Did you mean: record_in
2006 Jul 11
6
@record.each do |record|
I''m trying to ''destroy'' a particular record of a table >From the controller side, i''ve found a list of possible records that i want deleted. ie. @chart = Chart.find(:all, :conditions => ["record_id = ?", param[''id''] ] ''id'' is passed into the controller and @chart is all the possible records that have record_id = id. My problem is this. I know there is only one chart w/ record_id = id. But the search that i''ve done thinks that there could be...
2006 Jul 10
4
find()
Can some1 help me on syntax with the find() function. I''m trying to pull up a table record, called chart, that has a particular field specified. ie chart has a field called record_id, which i know. How can i find the record that contains chart.record_id. something like chart = Chart.find(:conditions => "record_id = :id") this gives me an error. I''m passing :id, to the controller. Please help!! Thanks, Yngwie -- Posted via http://www.ruby-forum.com...
2006 Mar 09
3
Runtime Error
Hi all, Can anyone tell me why this line of code works in FF but not IE?? function stuff(id){ record_id=$(id); record_id.innerHTML = "foo"; } I get a ''Runtime Error''. -- ----------------------- Iggy Sandejas Web Developer 0419 485 252 D-Frag Solutions http://www.dfrag.com.au -----------------------
2010 Aug 20
0
[PATCH 1/2] Implement APEI ERST feature to Xen
...t; + unsigned long flags; + + if (!erst_enabled) + return -ENODEV; + + spin_lock_irqsave(&erst_lock, flags); + count = __erst_get_record_count(); + spin_unlock_irqrestore(&erst_lock, flags); + + return count; +} + +static int __erst_get_next_record_id(u64 *record_id) +{ + struct apei_exec_context ctx; + int rc; + + erst_exec_ctx_init(&ctx); + rc = apei_exec_run(&ctx, ACPI_ERST_GET_RECORD_ID); + if (rc) + return rc; + *record_id = apei_exec_ctx_get_output(&ctx); + + return 0; +}...
2006 Jan 29
9
Specify options with habtm
Hi all I have the following models: class member has_and_belongs_to_many :disc_jockeys end class disc_jockey has_and_belongs_to_many :members end The relation table is called disc_jockeys_members and has the following fields: disc_jockeys_members(disc_jockey_id, member_id, status) So far, the field status can have values like valid, invalid, locked etc., but it is not regarded yet by
2009 Feb 18
5
fields_for and Conflicting types for parameter containers. Expected an instance of Hash but found an instance of Array.
I''m trying to use ''fields_for'' in a form. I want the same form to support both the creation of new obejcts as well as the editing of old ones. So - in my controller, sometimes I will pass to the form an object that already exists in my database and has an id and other times I will pass it a newly created instance of an object that does not yet exist in the database and
2006 Sep 15
2
Caching::Sweeper Access to Controller
.../usr/lib/ruby/1.8/observer.rb:184:in `each'' /usr/lib/ruby/1.8/observer.rb:184:in `notify_observers'' Here''s my code (the problem is with ''controller'' being nil): def log(record, event, user = controller.session[:user]) a = AuditTrail.new(:record_id => record.id, :record_type => record.type.name, :event => event, :user_id => user) a.record_version = record.version if record.respond_to?("version") a.save! end The interesting thing is that it only happens on actions within one of the co...
2006 Jul 10
3
finding particular record
Hi, I''m looking for a particular record from a view called ''charts''. The view ''charts'' joins data from a table ''record'' and a table ''owners''. I''m trying to pull up data from ''charts'' that lists certain data from ''record'' ie. I know i need record.id = 5. Is there a
2006 Jul 11
8
Stop updated_at from auto updating?
Hi Is there any way to temporarily stop the updated_at field from being updated when a record is modified with ActiveRecord? I have a date field which is keeping track of when the record data was last checked by my application and my app manually updates it, of course when I do this the updated_at field is also touched making it fairly useless for finding out when the actual data was changed
2008 Jun 24
10
Question on passing arguments inside a view.
I''m running into an issue undefined local variable or method `directoryid'' for #<EditorialsController:0x23f1bf8> I have two Models on a legacy database and only one controller called editorials with two actions index and display. I''m trying to pass in a parameter from the results of my search and getting the above error. Example: two tables one is editorial the
2006 Apr 05
0
Advice needed for new versioning plugin
I''m working on a new plugin called acts_as_archived. It is based on acts_as_versioned, but uses a different table schema and has some other features. The table design is like so (let''s say we''re dealing with models called Record): records id archived_record_id archived_records id record_id name date version etc The main records table serves as a lookup table for the current version''s content. All versions of a Record (including the current one) are stored as separate rows in archived_records. I have basic find and save working, but I am ha...
2009 Aug 04
0
Authlogic::How to access current user from within a cache sweeper?
...lent? Thanks for any help. Here is Chad''s full example: class AuditSweeper < ActionController::Caching::Sweeper observe Person def after_destroy(record) log(record, "DESTROY" ) end def log(record, event, user = controller.session[:user]) AuditTrail.create(:record_id => record.id, :record_type => record.type.name, :event => event, :user_id => user) end end
2009 Mar 26
0
assert2-0.4.6 provides assert_xhtml, an alternative to assert_select
...to interrogate your XML. When called without an argument, the method reads @response.body. === without! === Every assert* has a matching deny* method. assert_xhtml recognizes the special element without! as a request to fail if the given elements do indeed appear in your output: get :info, :record_id => record.id assert_xhtml do div :class => :content do without!{ div :class => :download } end end That assertion will fail if the outer <div class=''content''> tag does not exist, or if any inner <div class=''download'...