search for: mdalsant

Displaying 8 results from an estimated 8 matches for "mdalsant".

Did you mean: malsana
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
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
2006 Jul 06
2
Validation Error
Hi all, I''m trying to validate a data field. I''ve added ''validate_presence_of :name'' to the record model, but when I try to create a record i get an error complaining that it can''t find data from another table that also is updated on that page. Let me explain further, On my ''record'' update page, I have data from another table
2006 Jul 17
2
actionmailer / @recipeints
Hi all, i''m trying to email multiple people based on certain criteria. i do a search like @stacks = Group.find(:all, :conditions => ["component_id = ?", 2]) this populates stack to contain multiple groups with component_id =2. How do i populate @recipients to contain all possible @stack.email. Let me clearify. Each stack has its own email, and i need to include each
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
2006 Jul 13
1
error_messages_for
I can''t seem to figure out how to validate a few fields some1 please help me out model--------- class Record < ActiveRecord::Base validates_presence_of :sw, :flex end controller------------ class RecordController < A;;icationController def new @record = Rrecord.new @product = Product.find(params[''product_id'']) end def create
2006 Jul 12
5
validates_peresence_of
Is there an expert validater that can point me in the right direction? I''ve looked for extended documentation on ''validates_presence_of'' but i can''t seem to find any. I''m trying to make sure that i don''t enter a nil object in my database, so i''ve added validate_presence_of to my Record Model. i.e. --> class Record <
2006 Aug 01
3
Commenting out Code
Does any one know how to comment out code in a controller (.rb file) Thanks, Yng -- Posted via http://www.ruby-forum.com/.