Displaying 1 result from an estimated 1 matches for "change_type_valu".
Did you mean:
change_type_value
2010 Jun 23
0
Rails 3 - AJAX Response
...nd
end
else
respond_to do |format|
if @user.update_attribute("type",
Type.find_by_id( params[:user][:type_id] ) )
format.js{ head:ok}
else
format.js {head:ok}
end
end
end
end
def change_type
unless params[:change_type_value]
if @user.category == 5
@user.category = 0
else
@user.category = 5
end
respond_to do |format|
if @user.save
format.html { redirect_to( users_path, :notice =>
"Sucessfully changed " + @user.name.titleize + "''...