search for: dr_titl

Displaying 5 results from an estimated 5 matches for "dr_titl".

Did you mean: dr_title
2005 Dec 16
12
validates_presence_of not working
Hi, I''m new to ruby and rails. I just created a simple update page and the update works fine if all form fields are filled in. However there is one field that should never be allowed to be blank. So I put this in my model: class Topic < ActiveRecord::Base validates_presence_of :dr_title validates_length_of :dr_title, :minimum => 1 So, when I submit the form with a blank dr_title, I should see an error message with the offending form item highlighted, correct? That doesn''t happen. It just goes on to the next page as though it worked fine, but in fact it doesn'...
2006 Mar 29
2
inserts now set unset columns to null
...that looked like this: Topic Create (0.001189) INSERT INTO topics ("inlibrary", "irx_display_title", "irx_title", "title", "creation_stamp", "last_update_stamp", "url", "mime_type", "irx_doc_path", "dr_title", "irx_machine_id", "source", "keywords") VALUES(''t'', NULL, ''d gdssg sd5 gd5g '', NULL, ''2006-03-29 10:49:23'', ''2006-03-29 10:49:23'', NULL, NULL, ''/irx/xml/DGdssgSd5Gd5g.xml'...
2005 Dec 18
1
problems with text_field_with_autocomplete
...ws/topic/observer.rhtml) <%= javascript_include_tag "prototype" %> <%= javascript_include_tag "effects" %> <%= javascript_include_tag "dragdrop" %> <%= javascript_include_tag "controls" %> <%= text_field_with_auto_complete :topic, :dr_title, {}, :skip_style => true %><br/> Here''s the handler, it''s just faked up for now. I don''t care about the actual search at this point, just want to show that the partial rendering is not working: file: app/controllers/topic_controller.rb: def aut...
2006 Mar 10
4
problem when looping through habtm children in a view
I have this code in a view: <% for topic in @topics %> <%= topic.id %> <%= topic.dr_title %><br/> <ul> <% for doc in topic.child_documents %> <%= doc.dr_title %><br/> <% doc = nil %> <% end %> </ul> <% end %> Though the topic titles and IDs display correctly, the child...
2006 Mar 29
0
active record bug?
...e! # successful insert Topic Create (0.001205) INSERT INTO topics ("inlibrary", "irx_display_title", "irx_title", "title", "creation_stamp", "last_update_stamp", "url", "mime_type", "irx_doc_path", "dr_title", "irx_machine_id", "source", "keywords") VALUES(''t'', NULL, ''d gdssg sd5 gd5g '', NULL, ''2006-03-29 11:13:42'', ''2006-03-29 11:13:42'', NULL, NULL, ''/irx/xml/DGdssgSd5Gd5g.xml'...