search for: capitaliation

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

Did you mean: capitalization
2006 Apr 24
0
Called id for nil, which would mistakenly be 4 -- if you really wanted the idof nil, use object_id - solved
...e = Recipe.find(:all) # in this case, recipe is a local variable that the view sill not have access to @Recipe = Recipe.find(:all) # in this case, @Recipe is an instance variable, but it''s a different instance variable than @recipe. There are lots of variations possible. Typos and capitaliation represent the largest proportion of errors I personally have made. If this doesn''t solve your problem, please post the controller code and I''m sure someone will be able to help. Best regards, Bill
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