Displaying 1 result from an estimated 1 matches for "cat_name".
Did you mean:
at_name
2008 Feb 11
3
can't update my data base using "update_attributes"
...e 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
@project = @category.client_says.find(params[:id])
else
@project = @category.projects.find(params[:id]...