search for: inlibrary

Displaying 3 results from an estimated 3 matches for "inlibrary".

2005 Dec 16
12
validates_presence_of not working
...n''t understand that parameter anyway; I want the validation enforced whether I am saving or updating or creating, is there a way to specify all?) Here is the controller method: def updatetopic fields = params[:topic] # if checkbox was unchecked, mark it false if fields[:inlibrary] == nil fields[:inlibrary] = false end Topic.update(params[:id], fields) msg = "Updated Topic Successfully" flash[:notice] = msg redirect_to(:action => "welcome") end And here is the view: <%= start_form_tag(:action => "updatetopic&quo...
2006 Mar 29
2
inserts now set unset columns to null
Hi, I upgraded to Ruby 1.8.4 and whatever the latest Rails is as of March 29 2006. I am using PostgreSQL 7.4. With the earlier version of rails, I had insert queries 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")...
2006 Mar 29
0
active record bug?
...em). Then another insert is attempted and fails because of a constraint that requires one of the values entered to be an existing value in another table. But we have just verified that that value exists in the other table! # 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")...