Displaying 1 result from an estimated 1 matches for "project_cat".
Did you mean:
project_a
2008 Feb 11
3
can't update my data base using "update_attributes"
...n environment.
I do not understand why it says in the log file nilclass when the return
@params is not nil.
Hope someone can help me on this one.
****************************************
********* controller *******************
****************************************
def update
if session[:project_cat].nil? then
redirect_to :action => ''index''
else
@category = Parent.find_by_cat_name(session[:project_cat])
if @category.cat_name == "branding" then
@project = @category.brandings.find(params[:id])
elsif @category.cat_name == "client_say" then...