Displaying 1 result from an estimated 1 matches for "client_say".
Did you mean:
client_says
2008 Feb 11
3
can't update my data base using "update_attributes"
...f 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])
end
if @project.update_attributes(@params[:project]) # this is line 201
flash[:notice] = ''Project was successfully updated.''
redirect_to :action...