Displaying 3 results from an estimated 3 matches for "capitalis".
Did you mean:
capitales
2006 Apr 24
0
Called id for nil, which would mistakenly be 4 -- if you really wanted the idof nil, use object_id - solved
Hi Bill,
No I am not using Instant Rails.
>There are lots of variations possible. Typos and capitalisation
represent the largest proportion of errors I personally have made.
Thanks a lot....solved the problem. Changed recipes (plural) in
controller file to recipe (singular). That teaches me to pay *real*
attention to casing. (forgive me, I am from the VS and VB world :-)
>Actually, the erro...
2009 Mar 17
4
Preventing a submitted hash from ActiveRecord DB store
Hi all,
I have a multi model form (Project with many tasks) and I want to
prevent a task from being saved to the DB if it is empty ie. if there
is no i/p for that task from the user. I tried the following
class Task < ActiveRecord::Base
before_save :check_if_empty
...
def check_if_empty
self.destroy if description.blank?
end
but i get this
TypeError in ProjectsController#create
2006 Apr 21
3
Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id
Hi
I am a newbie to Ruby on Rails, but experienced in programming.
I am trying out Rolling with Ruby on Rails article by Curt Hibbs on
onlamp.com. I have encountered following error:
Called id for nil, which would mistakenly be 4 -- if you really wanted
the id of nil, use object_id
I searched the archives of the list and found that similar
question was left unanswered. I do understand from